Repository navigation
fix(sidebar): align busy spinner with close button slot across sidebar rows - #1301
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Align the sidebar tab busy spinner and status indicators with the close button (
x) across all sidebar tab/row views.Problem
apps/desktop/src/shell/view/sidebar/tab_groups.rs(tab_row),tail(20x20) placed bothstatus_el(14x14 busy spinner or 7x7 status dot) andclose_btn(20x20 hover-revealedx) in normal flex flow without.absolute(0.0, 0.0). Even at rest whenclose_btnhasopacity: 0,close_btnstill occupied 20 pt of layout width on the right and pushed the busy spinner 17 pt to the left of its ownx(and 13.5 pt left of a hovered neighbor'sx).tab_groups.rs,pinned_area.rs,rows.rs,sections/row.rs, andsections/header.rsusedpr(8.0)(orpr(2.0)on group headers) and 16x16 status boxes on pinned/session rows, whereas verticalTabStrip(tab-nav.css:1-8,inset-inline-end: 4px) places the 20x20 status/close slot 4 pt from the row end (center X atrow_right - 14).Changes
apps/desktop/src/shell/view/sidebar/tab_groups.rs:close_btnandmark_el(wrappingstatus_el) at.absolute(0.0, 0.0).size(20.0, 20.0).center()insidetail(size(20.0, 20.0)), matchingsections/row.rs(in_slot) andrune-kitTabStrip(status_slot,tab-nav.css:1-8, 40-50)..pl(8.0).pr(4.0)ontab_rowand.pr(4.0)onheaderso every grouped tab's spinner, dot, closex, and group menu button share the exact same20x20end column (center X = row_right - 14).apps/desktop/src/shell/view/sidebar/pinned_area.rs: updatevertical_sessionto.pl(8.0).pr(4.0)andsize(20.0, 20.0)forstatus(matching officialPinnedSessionrenderingTabNavItem,pinned-area.tsx:545-565).apps/desktop/src/shell/view/sidebar/rows.rs: updatesession_rowto.pr(4.0)andsize(20.0, 20.0)forstatusso it aligns withgroup_header(.pr(4.0),20x20) andTabStrip.apps/desktop/src/shell/view/sidebar/sections/row.rs§ions/header.rs: align end inset to.pl(8.0).pr(4.0)so Whisper section marks andxbuttons share the same column asTabStripand pinned rows.Verification
45779519896on exact headd4f7aeebfc-guardrails,build-macos,build-windows (x64),build-windows (arm64), andbuild-linux (x64)passed (Linux arm64 skipped).45779519896, 2x scale,--tree+ 1 px red alignment guide lines):sidebar-tab-groups-project):cx = 209.0 pt(418 px), hovered neighborxcx = 222.5 pt(445 px, delta13.5 pt/27 px), busy row's ownxcx = 226.0 pt(452 px, delta17.0 pt/34 px).cx = 223.0 pt(446 px), hovered neighborxcx = 223.0 pt(446 px), busy row's ownxcx = 223.0 pt(446 px), unread/attention dotscx = 223.0 pt, group header menu buttonscx = 223.0 pt- 0.0 pt / 0 px delta in both X and Y.TabStrip(sidebar-grouped): busy spinnercx = 223.0 pt(446 px), hoveredxcx = 223.0 pt(446 px) - exact match to grouped tabs.Before vs After (Grouped tabs, busy row + hovered neighbor)
Before vs After (Busy row hovered so close button replaces spinner)
Vertical TabStrip verification