Right panel overflows past the bottom #61
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gtfs.zone/coloring-book#61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The right panel overflows the viewport by ~30px. There are two layered causes:
Primary (grid item overflow):
.right-panelis a CSS Grid item ingrid-rows-[auto_1fr]. Grid items default tomin-height: auto, which lets them grow past the1frtrack height when content is tall — even withoverflow-hidden. Fix: addmin-h-0to.right-panel.Secondary (DaisyUI v5 tab height): DaisyUI v5's
.tab-contentalready has a built-inheight: calc(100% - var(--tab-height) + var(--border)). It expects the.tabsparent to have a definite height. The current markup addsh-fullto each.tab-content, which overrides DaisyUI's calculation. And.tabshas nomin-h-0, so as a flex item it can grow past the available space. Fix: addmin-h-0to.tabs(so it has a definite, bounded height), and removeh-fullfrom each.tab-content.Relevant context:
src/index.html:38—.app-containerish-screen grid grid-cols-[1fr_650px] grid-rows-[auto_1fr]src/index.html:377—.right-panel bg-base-200 border-l border-base-300 flex flex-col overflow-hiddensrc/index.html:380—.tabs tabs-bordered flex-1 overflow-hidden.tab-content h-full overflow-y-auto bg-base-100 border-base-300 p-0node_modules/daisyui/components/tab.css—.tab-contenthas built-inheight: calc(100% - var(--tab-height) + var(--border));.tabsisdisplay: flex; flex-wrap: wrap; height: var(--tabs-height)where--tabs-height: autoPhase 1 — Fix right panel height overflow
src/index.html:377, addmin-h-0to.right-panel:class="right-panel bg-base-200 border-l border-base-300 flex flex-col overflow-hidden min-h-0"src/index.html:380, addmin-h-0to.tabs:class="tabs tabs-bordered flex-1 min-h-0 overflow-hidden".tab-contentdivs (lines 391, 472, 518, 532), removeh-full— DaisyUI v5 computes this viacalc(100% - var(--tab-height))internally. Keepoverflow-y-auto.Gotcha: The
h-fullinside tab-content children (e.g.#browse-list-view,#file-list-viewat lines 394, 475) also useh-full— these refer to the tab-content's height, which is now DaisyUI-managed. These should still resolve correctly since DaisyUI's height is definite. Watch for any of those inner divs disappearing (zero height) — if so, they may needh-fullreplaced withflex-1in a flex column context.Original Issue
It's strange, just by about 30 pixels but it's annoying