Skip to content

Commit e5e0387

Browse files
committed
fix(webapp): resting gap above the first customize modal section
1 parent 228c38f commit e5e0387

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

apps/webapp/app/components/navigation/CustomizeSidebarDialog.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,10 @@ export function CustomizeSidebarDialog({
235235
<DialogContent className="sm:max-w-md">
236236
<DialogHeader>Customize sidebar</DialogHeader>
237237
{/* Bleeds through the container's right padding (-mr-4/pr-4) so the scrollbar sits at the
238-
modal edge, and through the vertical grid gaps (-mt-1.25/-mb-4) so content scrolls flush
239-
against the header divider and the footer's top border */}
240-
<div className="-mb-4 -mr-4 -mt-1.25 max-h-[60vh] space-y-6 overflow-y-auto pr-4 scrollbar-thin scrollbar-track-transparent scrollbar-thumb-surface-control">
238+
modal edge, and through the vertical grid gaps (-mt-1.25/-mb-4) so the scrollport (and
239+
scrollbar) starts at the header divider and ends at the footer border. pt-3 is INSIDE
240+
the scrollport: a resting gap above the first title that content scrolls through. */}
241+
<div className="-mb-4 -mr-4 -mt-1.25 max-h-[60vh] space-y-6 overflow-y-auto pr-4 pt-3 scrollbar-thin scrollbar-track-transparent scrollbar-thumb-surface-control">
241242
{orderedSections.map((section, index) => (
242243
<div key={section.id}>
243244
<div className="flex items-center justify-between border-b border-grid-dimmed pb-1.5">

0 commit comments

Comments
 (0)