Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/shared/src/components/MainLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,11 @@ function MainLayoutComponent({
<div
className={classNames(
'relative flex min-h-0 flex-1 flex-col',
'laptop:overflow-hidden laptop:rounded-24 laptop:border laptop:border-border-subtlest-quaternary laptop:bg-background-default laptop:p-0.5 laptop:shadow-2',
// `overflow-clip` clips to the rounded card exactly like
// `overflow-hidden` but, unlike hidden, does not establish a
// scroll container, so descendant `position: sticky` elements
// (e.g. sticky tab bars) keep sticking to the viewport.
'laptop:overflow-clip laptop:rounded-24 laptop:border laptop:border-border-subtlest-quaternary laptop:bg-background-default laptop:p-0.5 laptop:shadow-2',
!hasTopBanners &&
!topBanner &&
'laptop:min-h-[calc(100vh-1.5rem)]',
Expand Down
Loading
Loading