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

Fix: add min-width to video #839

Merged
merged 2 commits into from
Sep 4, 2018

Conversation

ConradJChan
Copy link
Contributor

Issue is that on minimum sized videos, the video controls get too cramped once you max out the content to be displayed. This means that the video needs have a length in hours, not minutes, as well as close captioning as an option. This is only observed when the hover over the volume control expands out to the right. From experimenting, it appears that no matter how small the video is that is uploaded, the conversion upscales it to minimum 480p and when it's rendered is at least 420px wide.

Before:
before min width

After:
after min width

The fix was to set a min-width on the video element to be 460px which seems to be wide enough to comfortably render the volume slider, the time display in hours, and the CC button (along with the other default controls).

@boxcla
Copy link

boxcla commented Aug 29, 2018

Verified that @ConradJChan has signed the CLA. Thanks for the pull request!

Copy link
Contributor

@DanDeMicco DanDeMicco left a comment

Choose a reason for hiding this comment

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

LGTM

@jstoffan
Copy link
Collaborator

Just as a side note: Is the CC button not vertically centered? It looks weird.

@ConradJChan
Copy link
Contributor Author

@jstoffan let me know if your hawkeyes see something else

screen shot 2018-08-31 at 3 57 36 pm

@jstoffan
Copy link
Collaborator

@ConradJChan, it looks like there's a bunch of unrelated changes from the past few days. Can you make sure there's no merge conflicts?

@ConradJChan ConradJChan force-pushed the cramped-video-controls branch from fdd1065 to f3dd962 Compare August 31, 2018 23:48
@ConradJChan ConradJChan merged commit b655d90 into box:master Sep 4, 2018
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.

6 participants