Skip to content

Fix item list gaps - #62

Merged
gabeabrams merged 2 commits into
back-buttonfrom
fix-item-list-gaps
Aug 10, 2026
Merged

gabeabrams merged 2 commits into
back-buttonfrom
fix-item-list-gaps

Conversation

@yuenler

@yuenler yuenler commented Aug 10, 2026 •

Copy link
Copy Markdown
Collaborator

Fix gap above wrapped item names in ItemPicker

Problem

When an item's name wraps onto two lines, the row suddenly gains ~24px of dead space above it.

Cause

Each row laid its chevron and checkbox out as inline-level elements. Every line box carries an invisible strut sized from the container's line-height, positioned against the baseline — once the button grows past one line, the strut no longer fits inside it and the row grows taller than its contents.

Fix

Wrap each row's chevron + checkbox in a d-flex align-items-center container (new NestableItemList-item class). The children container stays a sibling below, so nesting is unaffected.

@yuenler
yuenler changed the base branch from main to back-button August 10, 2026 01:49

@gabeabrams gabeabrams left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard to tell what this'll do so I'll trust that this is tested and merge it.

@gabeabrams
gabeabrams merged commit fb0c73f into back-button Aug 10, 2026
@gabeabrams
gabeabrams deleted the fix-item-list-gaps branch August 10, 2026 18:14
gabeabrams added a commit that referenced this pull request Aug 12, 2026
* back button

* have reactkit control more back button logic

* Fix item list gaps (#62)

* fix gaps between items

* remove unnnecessary comment

* backbuttonstate

* Small fixes

* Rebuilt

---------

Co-authored-by: Gabe Abrams <gabeabrams@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants