Skip to content

fix(ui): rules page layout on narrow viewports - #321

Merged
ajianaz merged 1 commit into
developfrom
fix/rules-mobile-layout
Sep 3, 2026
Merged

fix(ui): rules page layout on narrow viewports#321
ajianaz merged 1 commit into
developfrom
fix/rules-mobile-layout

Conversation

@ajianaz

@ajianaz ajianaz commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

What

  • Header restructured with flex-wrap: H1 keeps one line; the project select is capped at 190px and wraps to a second row together with the + New Rule button on narrow screens (previously the title wrapped mid-word and the page had 31px of horizontal overflow at 390px)
  • Rule cards stack vertically below sm: Enable/Delete move under the rule text instead of compressing it into a ~90px column (the title was wrapping to 4 lines); badge row wraps; long webhook URLs now break-all instead of overflowing
  • Inline empty state replaced with the shared EmptyState component (missed during feat(ui): shared components, dialog confirms, toasts, sheet nav #317)

Why

With several projects registered, the long project names in the selector pushed the header past the viewport and made the rules list unusable on phones — verified by the user on a 390px device.

Testing

  • Measured scrollWidth - clientWidth = 0 at 390px in dark and light (was 31px)
  • Visually verified mobile (390px, both modes) and desktop (1440px, unchanged layout) via screenshots
  • Unit/component 21/21, Playwright 18/18, npm run check 0 errors, npm run build pass

- Header stacks: H1 stays on one line; project select (capped at
  190px) and the New Rule action wrap to a second row instead of
  squeezing the title and causing 31px of horizontal overflow at 390px
- Rule cards stack vertically below sm: actions drop under the rule
  text instead of crushing the title into a narrow column; badge row
  wraps; long webhook URLs break instead of overflowing
- Swap the inline empty state for the shared EmptyState component
@ajianaz
ajianaz merged commit c35f9f8 into develop Sep 3, 2026
17 checks passed
@ajianaz
ajianaz deleted the fix/rules-mobile-layout branch September 3, 2026 07:42
@ajianaz ajianaz mentioned this pull request Sep 3, 2026
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