Plyr: Volume bar overlaps caption menu

Created on 7 Nov 2020  路  4Comments  路  Source: sampotts/plyr

Expected behaviour

The volume bar to stop before the button on the right next to it, as Chrome does:
afbeelding

Actual behaviour

The volume bar overlaps the first button on the right next to it (either the captions button or settings button):
afbeelding

Steps to reproduce

Environment

  • Browser: Firefox
  • Version: 83.0b9
  • Operating System: Windows
  • Version: 10

Console errors (if any)

Link to where the bug is happening

https://plyr.io

Most helpful comment

For a simple fix set the min-width of the input field to 0:

.plyr__volume input{ 
    min-width: 0;
}

All 4 comments

For a simple fix set the min-width of the input field to 0:

.plyr__volume input{ 
    min-width: 0;
}

@dirkjf That indeed seems to fix it, thank you very much. Out of interest, do you happen to know why that fixes it?

@Koenvh1, By default, the initial value of min-width is auto, which means it will actually use the intrinsic minimum width that is automatically defined by the browser, which in the case of Firefox is bigger than the available space. This is how I believe it works, but you could also call it a bug in Firefox 馃槃.

I'll get the _well overdue_ next version out the door this weekend.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thang-nm picture thang-nm  路  4Comments

frumbert picture frumbert  路  3Comments

michaelmano picture michaelmano  路  3Comments

muuvmuuv picture muuvmuuv  路  3Comments

nam-co picture nam-co  路  4Comments