Skip to content

Commit

Permalink
UI Experiment P3: fix offscreen elements on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdjohnson committed Jul 24, 2024
1 parent 6801c2d commit 511bdab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Lightbox from '~/features/lightbox/components/Lightbox'
function App() {
return (
<Dropzone>
<div className="container drawer drawer-end mx-auto flex max-h-screen flex-col place-self-center p-3 text-base-content">
<div className="container drawer drawer-end mx-auto flex !max-h-dvh flex-col place-self-center p-3 text-base-content">
<Navbar />

<SettingsModal />
Expand All @@ -23,7 +23,7 @@ function App() {

<OmniBar />

<section className="drawer-content flex h-screen max-h-full w-full flex-grow flex-row gap-4 overflow-hidden text-xl">
<section className="drawer-content flex h-dvh max-h-full w-full flex-grow flex-row gap-4 overflow-hidden text-xl">
<aside className="hidden lg:block" role="complementary">
<SideBar />
</aside>
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Dropzone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Dropzone = ({ children }: PropsWithChildren) => {

return (
<div
className="grid !h-svh !max-h-svh bg-base-100"
className="grid !h-dvh !max-h-dvh bg-base-100"
{...getRootProps()}
onClick={undefined}
>
Expand Down
4 changes: 2 additions & 2 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ body {
'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
max-height: 100svh !important;
height: 100svh !important;
max-height: 100dvh !important;
height: 100dvh !important;
}

code {
Expand Down

0 comments on commit 511bdab

Please sign in to comment.