Skip to content

Commit 9db4937

Browse files
committed
Fix layout
1 parent 3dc50a3 commit 9db4937

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

web/components/nav/sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function Sidebar(props: {
3232
<nav
3333
aria-label="Sidebar"
3434
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))]',
35+
'flex h-screen flex-col h-full max-h-screen overflow-y-auto safe-bottom mt-[calc(env(safe-area-inset-top))]',
3636
className
3737
)}
3838
>
@@ -56,7 +56,7 @@ export default function Sidebar(props: {
5656
</Button>
5757
)}
5858
</div>
59-
<div className="mb-6 mt-auto flex flex-col gap-1">
59+
<div className="mb-[calc(24px+env(safe-area-inset-bottom))] mt-auto flex flex-col gap-1">
6060
{bottomNavOptions.map((item) => (
6161
<SidebarItem key={item.name} item={item} currentPage={currentPage}/>
6262
))}

web/pages/messages/[channelId].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export const PrivateChat = (props: {
294294
</Modal>
295295
)}
296296
</Row>
297-
<Col className="relative h-[calc(100dvh-213px)] lg:h-[calc(100dvh-184px)] xl:px-0">
297+
<Col className="relative h-[calc(100dvh-213px-env(safe-area-inset-bottom))] lg:h-[calc(100dvh-184px)] xl:px-0">
298298
<div
299299
ref={outerDiv}
300300
className="relative h-full overflow-y-auto"

0 commit comments

Comments
 (0)