app/views/lookbook/layouts/app.html.erb in lookbook-0.3.0.beta.0 vs app/views/lookbook/layouts/app.html.erb in lookbook-0.3.0.beta.1

- old
+ new

@@ -1,7 +1,7 @@ <!DOCTYPE html> -<html lang="en" class="h-fill min-h-fill"> +<html lang="en" class="h-screen"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> @@ -15,26 +15,26 @@ <% end %> <script src="/lookbook-assets/app.js" defer></script> <title><%= [@example&.label, @preview&.label, "Lookbook"].compact.join(" :: ") %></title> </head> -<body class="text-gray-800 font-sans text-sm antialiased h-fill min-h-fill overflow-hidden"> +<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}))" @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 w-fill h-full min-h-fill" + class="md:grid w-screen h-screen" > - <div class="h-full min-h-fill bg-gray-100 overflow-hidden" x-show="$screen('md') || sidebarOpenMobile" x-cloak> + <div class="h-full bg-gray-100 overflow-hidden" x-show="$screen('md') || sidebarOpenMobile" x-cloak> <%= render "./sidebar" %> </div> - <div x-data="split(splitProps)" class="h-fill gutter border-r border-gray-300 relative" x-show="$screen('md')" x-cloak> - <div class="w-[9px] h-full min-h-fill 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 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-fill overflow-hidden w-full" x-show="!$screen('md') || !sidebarOpenMobile" x-cloak> + <main id="main" x-effect="render" class="h-full overflow-hidden w-full" x-show="!$screen('md') || !sidebarOpenMobile" x-cloak> <%= yield %> </main> </div> </body> </html>