Skip to content

Fix small-screen responsiveness in DriveView and TimeDisplay - #768

Open
yunjiaz7 wants to merge 1 commit into
commaai:masterfrom
yunjiaz7:fix-760-small-screen-responsiveness
Open

yunjiaz7 wants to merge 1 commit into
commaai:masterfrom
yunjiaz7:fix-760-small-screen-responsiveness

Conversation

@yunjiaz7

@yunjiaz7 yunjiaz7 commented Oct 3, 2026

Copy link
Copy Markdown

Fixes #760.

On very small viewports (320px), the DriveView media options pill used width: max-content, which prevented it from shrinking and caused horizontal overflow. The TimeDisplay control bar's fixed 40px buttons and min-widths also overflowed narrow screens.

Changes:

  • src/components/DriveView/Media.jsx: replace width: max-content with maxWidth: 100% so the pill keeps its shape but can shrink.
  • src/components/TimeDisplay/index.jsx: under 420px viewports, compact the icon buttons to 32px, reduce the time-box min-width to 32px, shrink the duration font to 13px with no wrapping. Also apply the previously missing iconButton class to the pause button.

Verification: all 92 vitest tests pass, oxlint clean (0 warnings).

On very small viewports the DriveView media options pill used
width: max-content, preventing it from shrinking and causing
horizontal overflow. The TimeDisplay control bar also used fixed
40px controls that overflowed 320px viewports.

- Media.jsx: use maxWidth: 100% instead of width: max-content
- TimeDisplay: compact controls (32px) and smaller duration font
  under 420px; apply missing iconButton class to pause button
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

Welcome to connect! Make sure to:

  • read the contributing guidelines
  • mark your PR as a draft until it's ready to review
  • post the preview on Discord; feedback from users will speedup the PR review

deployed preview: https://768.connect-d5y.pages.dev
gallery report: https://768.connect-d5y.pages.dev/connect-gallery

This branch has not been deployed

No deployments
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.

small mobile devices bad responsiveness

1 participant