Skip to content

Fix: fit the colour pickers on narrow phones - #526

Merged
SandObserver merged 2 commits into
mainfrom
fix/color-picker-phone-fit
Oct 20, 2026
Merged

SandObserver merged 2 commits into
mainfrom
fix/color-picker-phone-fit

Conversation

@SandObserver

@SandObserver SandObserver commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Wrap .cc-row in the phone layout so the label takes its own line and the swatches fill a 7-column grid spread across the row.
  • Size the .cc-sw grid tracks to the 34px coarse-pointer swatches; they were 26px, so adjacent swatches overlapped and the last one overflowed the row.
  • Give .hsb-range min-width:0 so the HSB sliders shrink at 320px instead of pushing their end icons out of the row.
  • Lay the HSB slider rows on a subgrid of the tune area, so the label column fits the longest label and all three sliders share one length.

Testing
All green, including the full e2e suite. Added a 320px reflow test for the icon colour picker in French and Persian, which fails on the previous styles, and a test that the three sliders share one length.

Changelog

Fixed

  • Colour pickers in Settings fit on narrow phones without cutting off labels or swatches.
  • Colour sliders in Settings share one length.

Checklist

  • Stays within the project constraints: one container, no runtime dependencies, no build step (see CONTRIBUTING.md).
  • Tests added or updated for new logic, and the full suite, lint, and typechecks pass.
  • Docs updated if behavior or configuration changed.

Put each colour row's label above its swatches in the phone layout, size
the swatch grid tracks to the 34px touch swatches, and let the HSB sliders
shrink below their intrinsic width. Add a 320px reflow test for the icon
colour picker in French and Persian.
@SandObserver SandObserver added the ui/ux UI, UX, and accessibility only fix label Oct 20, 2026
Lay the HSB slider rows out on a subgrid of the tune area, so the label
column takes the longest label and every slider gets the same remaining
width. Labels no longer shrink to make room for a slider.
@SandObserver
SandObserver merged commit 5eda729 into main Oct 20, 2026
8 checks passed
@SandObserver
SandObserver deleted the fix/color-picker-phone-fit branch October 20, 2026 21:37
stackyard-release Bot pushed a commit that referenced this pull request Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui/ux UI, UX, and accessibility only fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant