-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
fix(control-bar): align center #7990
fix(control-bar): align center #7990
Conversation
💖 Thanks for opening this pull request! 💖 Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
Codecov Report
@@ Coverage Diff @@
## next #7990 +/- ##
==========================================
- Coverage 81.95% 80.98% -0.98%
==========================================
Files 110 116 +6
Lines 7333 7472 +139
Branches 1767 1817 +50
==========================================
+ Hits 6010 6051 +41
- Misses 1323 1421 +98
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This causes the opposite issue for me: the handle is too high. There's been a few reports of this before #7004 which users have fixed with some CSS. It seems specific to Chinese OS/page. I wonder if there's something different about font rendering with Chinese characters which affects em units.
I can replicate what you see if I run Chrome in Chinese Traditional on MacOS - the application rather than the page language is apparently what matters. I note the handle is slightly larger. Removing those two |
In this codepen, the first player uses the styling we currently have, and the second uses I haven't tried on Windows as the standard edition of Windows doesn't let you change the OS/app language. If @KangXinzhi or anyone else could try this on Chinese (or other non-Latin script) Windows browsers it would be useful. |
|
fe8a1dd
to
f182580
Compare
src/css/components/_progress.scss
Outdated
.video-js .vjs-progress-control:hover .vjs-play-progress:before{ | ||
top: -0.333333333333333em; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.video-js .vjs-progress-control:hover .vjs-play-progress:before{ | |
top: -0.333333333333333em; | |
} |
src/css/components/_progress.scss
Outdated
@@ -79,8 +83,7 @@ | |||
font-size: 0.9em; | |||
position: absolute; | |||
right: -0.5em; | |||
top: -0.333333333333333em; | |||
z-index: 1; | |||
top: -0.45em; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
top: -0.45em; | |
line-height: .35em; | |
z-index: 1; |
src/css/components/_volume.scss
Outdated
@@ -157,7 +157,7 @@ | |||
|
|||
// Volume handle | |||
&:before { | |||
top: -0.3em; | |||
top: -0.45em; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
top: -0.45em; | |
line-height: .35em; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These suggested changes are as my codpen example.
This could be a breaking change for custom skins, so should be in a major release - v8.x should be very soon now. Could you rebase agains the next branch? |
f182580
to
fd4dbe9
Compare
that's ok! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Took a quick look and seems to work nicely. Thank you @KangXinzhi!
Congrats on merging your first pull request! 🎉🎉🎉 |
…istent (videojs#7990) Fixes videojs#7989 BREAKING CHANGE: This changes how slider handles are styled, so custom skins that are targeting them may need to change.
Description
[Please describe the change as necessary.
The bar is not centered in video control section
issues7989
Specific Changes proposed
Please list the specific changes involved in this pull request.
Requirements Checklist