Skip to content

fix: fit the Video.js controls on narrow players - #136

Merged
Priveetee merged 1 commit into
devfrom
fix/videojs-compact-controls
Nov 20, 2026
Merged

Priveetee merged 1 commit into
devfrom
fix/videojs-compact-controls

Conversation

@Priveetee

Copy link
Copy Markdown
Member

Fixes TypeType-Video/TypeType#426.

On a 375 px phone the Video.js bar held play, volume, the time, captions, settings, cinema, web fullscreen, AirPlay, picture-in-picture and fullscreen, and the time overlapped the buttons.

Below 28rem of player width (a container query, so it follows the player and not the screen):

  • the current time and the duration move to both ends of the progress bar;
  • volume, cinema mode and web fullscreen are hidden (phones use their volume buttons, and fullscreen stays).

Wider players keep the same bar. Checked at 375 px in Chromium (mobile emulation) and in Safari on an iPhone 12 mini simulator.

@Priveetee
Priveetee merged commit 255d2e7 into dev Nov 20, 2026
1 check passed
@Priveetee
Priveetee deleted the fix/videojs-compact-controls branch November 20, 2026 21:31
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.

[Feature]: Improve Video.js player control bar layout on compact mobile screens

1 participant