Skip to content

fix(sidebar): balance connections strip entries and show both lines - #3247

Merged
datlechin merged 3 commits into
mainfrom
fix/workspace-rail-spacing
Oct 3, 2026
Merged

datlechin merged 3 commits into
mainfrom
fix/workspace-rail-spacing

Conversation

@datlechin

Copy link
Copy Markdown
Member

Why

Connections strip entries put the icon against the top of the highlight and cut the name to one line ("1…"). The database or schema line never appeared. A source list rewrites a cell's textField to one 13pt run on every layout pass, and two 13pt lines did not fit the fixed row.

Change

  • Entries show the connection and its database or schema again, at the sidebar's text size.
  • Icon and label are centred in the highlight, with equal space above and below and a fixed gap between them.
  • A scrolled strip no longer shows a sliver of the entry above or cuts the last one, and it rests on whole entries after a sidebar size change.

Verified

WorkspaceRailCellRenderingTests hosts the cell in the strip's real table; its font and balance tests fail with the old outlet. Checked on a Debug build at all three sizes, scrolled.

Screenshots

Light Dark
Light Dark

Not in this PR

  • No UI test: spacing is not a flow; the hosted-table tests cover it.
  • The selected entry's name is no longer semibold, a side effect of the same rewrite.

Fixes #3244

A source list rewrites an NSTableCellView's textField to one 13pt run on
every layout pass, so the container line never fit the fixed row. The
cell no longer uses that outlet, centres its icon and label in a row
measured from the label, and the scroll geometry reads where the source
list puts its first row.
@mintlify

mintlify Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
TablePro 🟢 Ready View Preview Oct 3, 2026, 12:42 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

A 1x display snaps an odd centring offset to whole pixels, so the space above and below a one-line entry can differ by a point there.
Signed-off-by: Ngô Quốc Đạt <datlechin@gmail.com>
@datlechin
datlechin merged commit 0a888ff into main Oct 3, 2026
11 checks passed
@datlechin
datlechin deleted the fix/workspace-rail-spacing branch October 3, 2026 00:42

This branch was successfully deployed

1 active deployment
staging - docs — 7051a07f Deployed Oct 3, 2026 by mintlify[bot]
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.

UI: Padding and gap feel visually unbalanced

1 participant