Skip to content

Commit

Permalink
Use dvh instead
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Sep 11, 2024
1 parent ba42415 commit 26fa24e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ <h2 class="text-2xl text-gray-800 font-semibold mb-4">Slideovers</h2>
}
}
</style>
<dialog data-slideover-target="dialog" data-action="click->slideover#backdropClose" class="slideover h-full max-h-full m-0">
<div class="h-full w-96 p-8">
<dialog data-slideover-target="dialog" data-action="click->slideover#backdropClose" class="slideover h-dvh max-h-dvh m-0">
<div class="h-full w-72 p-8">
<p>This slideover dialog has a groovy backdrop!</p>
<button autofocus data-action="slideover#close" class="px-2.5 py-1 bg-blue-500 text-white text-sm rounded">Close</button>
</div>
Expand Down

0 comments on commit 26fa24e

Please sign in to comment.