app/views/lookbook/layouts/app.html.erb in lookbook-0.3.1 vs app/views/lookbook/layouts/app.html.erb in lookbook-0.3.2
- old
+ new
@@ -19,17 +19,17 @@
</head>
<body class="text-gray-800 font-sans text-sm antialiased h-screen overflow-hidden">
<div
x-data="page"
x-effect="updateTitle"
- @refresh.document="fetchHTML().then(doc => $dispatch('document:updated', {doc}))"
+ @refresh.document="fetchHTML().then(doc => $dispatch('document:updated', {doc}))"
@popstate.window="fetchHTML().then(doc => { $dispatch('document:loaded', {doc}); sidebarOpenMobile = false})"
@sidebar:toggle.window="sidebarOpenMobile = !sidebarOpenMobile"
:style="`grid-template-columns: ${$store.nav.width}px 1px 1fr;`"
class="md:grid w-screen h-screen"
>
<div class="h-full bg-gray-100 overflow-hidden" x-show="$screen('md') || sidebarOpenMobile" x-cloak>
- <%= render "./sidebar" %>
+ <%= render "shared/sidebar" %>
</div>
<div x-data="split(splitProps)" class="h-full gutter border-r border-gray-300 relative" x-show="$screen('md')" x-cloak>
<div class="w-[9px] h-full bg-transparent hover:bg-indigo-100 hover:bg-opacity-20 transition absolute top-0 bottom-0 transform -translate-x-1/2 cursor-[col-resize] z-10"></div>
</div>
<main id="main" x-effect="render" class="h-full overflow-hidden w-full" x-show="!$screen('md') || !sidebarOpenMobile" x-cloak>