Skip to content

Commit

Permalink
Update height unit
Browse files Browse the repository at this point in the history
  • Loading branch information
rayc2045 committed May 8, 2024
1 parent 90c7524 commit 7b53809
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<body
x-data="{ BRAND_NAME, prefer, localStore, ...style, ...utils, sideMenu, router, shop, cart, user }"
x-init="await shop.init()"
class="min-h-svh flex flex-col tracking-wide bg-gray-100"
class="min-h-dvh flex flex-col tracking-wide bg-gray-100"
:class="sideMenu.isOpen && 'overflow-hidden'"
@dragstart.prevent
>
Expand Down Expand Up @@ -80,7 +80,7 @@
x-cloak
x-show="open"
x-transition.origin.top.left
class="absolute p-2 min-w-48 max-h-[80svh] overflow-y-auto whitespace-nowrap rounded-lg bg-gray-100 border border-gray-200 shadow-md"
class="absolute p-2 min-w-48 max-h-[80dvh] overflow-y-auto whitespace-nowrap rounded-lg bg-gray-100 border border-gray-200 shadow-md"
role="menu"
>
<template x-for="route in router.routes">
Expand Down Expand Up @@ -178,7 +178,7 @@
></div>
<aside
id="side-menu"
class="block fixed w-full max-w-80 h-svh flex flex-col justify-between bg-inherit border-r border-2 shadow-xl select-none z-[1]"
class="block fixed w-full max-w-80 h-dvh flex flex-col justify-between bg-inherit border-r border-2 shadow-xl select-none z-[1]"
style="display: none"
x-show="sideMenu.isOpen"
x-transition:enter="transition ease-gentle duration-300"
Expand Down

0 comments on commit 7b53809

Please sign in to comment.