Skip to content

Commit 9a84a67

Browse files
committed
Improve margins for mobile
1 parent 2241e3c commit 9a84a67

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

web/components/filters/mobile-filters.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ function MobileFilters(props: {
5959
)
6060

6161
return (
62-
<Col className="mb-4">
63-
<div
64-
// className="fixed inset-x-0 bg-canvas-50"
65-
style={{
66-
// bottom: 0,
67-
height: 'env(safe-area-inset-top)',
68-
}}
69-
/>
62+
<Col className="mb-[calc(20px+env(safe-area-inset-bottom))] mt-[calc(20px+env(safe-area-inset-top))]">
63+
{/*<div*/}
64+
{/* // className="fixed inset-x-0 bg-canvas-50"*/}
65+
{/* style={{*/}
66+
{/* // bottom: 0,*/}
67+
{/* height: 'env(safe-area-inset-top)',*/}
68+
{/* }}*/}
69+
{/*/>*/}
7070
<Row>
7171
<Col className="p-4 pb-2">
7272
<MyMatchesToggle

web/components/nav/sidebar.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ export default function Sidebar(props: {
3131
return (
3232
<nav
3333
aria-label="Sidebar"
34-
className={clsx('flex h-screen flex-col h-full max-h-screen overflow-y-auto', className)}
34+
className={clsx(
35+
'flex h-screen flex-col h-full max-h-screen overflow-y-auto mb-[calc(env(safe-area-inset-bottom))] mt-[calc(env(safe-area-inset-top))]',
36+
className
37+
)}
3538
>
3639
<SiteLogo/>
3740

0 commit comments

Comments
 (0)