Skip to content

fix(ui): a quoted settings list draws one unbroken line - #1291

Merged
JamieRuderman merged 3 commits into
feat/push-settings-notefrom
fix/push-list-quote-gap
Oct 12, 2026
Merged

JamieRuderman merged 3 commits into
feat/push-settings-notefrom
fix/push-list-quote-gap

Conversation

@JamieRuderman

@JamieRuderman JamieRuderman commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Fixes the breaks in the vertical line beside the push category toggles on the Notifications page. The fix is a capability of Quote rather than a special case in one list. Stacked on #1290.

Cause

ListItemSetting's quote draws the line as the Quote box's left border, and that box sits inside each list row. The theme's row padding (5px) and margin (1px) sit outside the border, so every row's line stopped short of the next.

Change

  • Quote gains spanRow: when the quote sits inside a list row, it reaches over that row's own padding and margin (a negative vertical margin, plus the same amount as padding). Stacked quoted rows draw one line. The row's own layout, height, hover and selected backgrounds are unchanged.
  • The row spacing is named once, as LIST_ITEM_PADDING_Y and LIST_ITEM_MARGIN_Y in styling/index.ts. theme.ts's list-row style and Quote both use it, so they can't drift apart.
  • ListItemSetting renders <Quote spanRow> for quote rows, which covers PushCategoryList and UpdateSetting.

Verification

  • Rendered the Mobile push row and the five category toggles in a temporary preview page (not committed). Measured: neighbouring quote boxes overlap by 1px, so the line is continuous, and each row keeps its 5px padding, 1px margin and height.
  • vitest run src/components: 33 tests pass.

Simplify ran on this PR. It moved the fix from a row-padding override in ListItemSetting plus a new Quote sx prop into this Quote prop, with the shared spacing constants.

@JamieRuderman
JamieRuderman merged commit 0373b1c into feat/push-settings-note Oct 12, 2026
3 checks passed
@JamieRuderman
JamieRuderman deleted the fix/push-list-quote-gap branch October 12, 2026 23:43
JamieRuderman added a commit that referenced this pull request Oct 13, 2026
…cation method its own icon (#1290)

* feat(notifications): note what mobile push covers and show it with a phone icon

* feat(notifications): describe each kind of push, and give email and webhook their own icons

* fix(ui): a quoted settings list draws one unbroken line (#1291)

* fix(ui): a quoted settings list draws one unbroken line

* refactor(ui): Quote spans its list row itself, with the theme's row spacing named

* feat(push): account security pushes on by default (#1292)
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.

1 participant