MAPPS-346: consistent even spacing across collapsed sidebar icons #409
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/MAPPS-346-collapsed-nav-even"
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?
Follow-up to #408 (merged). Makes the collapsed rail spacing consistent across every icon instead of spacing the section groups apart. Sidebar scope only.
Background
#408 made the collapsed nav a flex column with
justify-between, but each section wraps its items in a block, so the nav's direct flex children were the section groups.justify-betweentherefore distributed the spare height between groups, giving uneven (by-section) spacing.What changed (collapsed rail only; expanded unchanged)
NavSectionwrapper is nowdisplay: contents(Tailwindcontents) instead of apt-1 space-y-0.5block. Its icons become direct flex children of the nav.flex flex-col justify-between gap-0.5from #408, so now every icon (Dashboard plus all section items) is distributed with one consistent gap;gap-0.5remains the minimum and it still degrades toflex-start+ scroll on overflow.Net: consistent even spacing across all collapsed icons.
#MAPPS-346