Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unnecessary black border above and below video in player #3920

Merged

Conversation

violoncelloCH
Copy link
Contributor

@violoncelloCH violoncelloCH commented Apr 3, 2021

Description

This removes the unnecessary black border/space above and below the video in normal player mode (if browser window is wide). It's achieved by further precising the aspect ratio 16/9 which is not just 1.7, but ~1.777777778. Therefore the video control take a little less vertical space and a 16/9 video fits perfectly into the same space. (see Screenshots below)

Related issues

none AFAIK

Has this been tested?

  • 👍 yes, I added tests to the test suite
  • 👍 yes, light tests as follows are enough
  • 💭 no, because this PR is a draft and still needs work
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

visual difference can be seen on Screenshots below

Screenshots

before after
image image

@violoncelloCH
Copy link
Contributor Author

ci failure seems unrelated (docker pull error - probably a temporary network issue)

@rigelk rigelk added Component: Player ⏯️ UI non-trivial UI changes, that might need discussion labels Apr 4, 2021
Copy link
Collaborator

@rigelk rigelk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SASS allows expression evaluation and interpolation ; maybe use it instead?

to remove unnecessary black border above and below the video

Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
@Chocobozzz
Copy link
Owner

Nice! Thanks @violoncelloCH

@Chocobozzz Chocobozzz merged commit 37ecefa into Chocobozzz:develop Apr 5, 2021
@violoncelloCH
Copy link
Contributor Author

Thanks for merging!

@violoncelloCH violoncelloCH deleted the fix/player-width-height-ratio branch April 5, 2021 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Player ⏯️ UI non-trivial UI changes, that might need discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants