-
Notifications
You must be signed in to change notification settings - Fork 5
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
Display previous/next buttons and timer for inaccessible canvases #529
Conversation
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.
Looks good overall as far as I can tell.
If auto advance is turned off then should the timer countdown be hidden instead of dimmed?
I did think to hide the timer instead of dimming it and with the flexbox CSS it seemed to shift the content up and down when hiding and showing the timer. And I thought that behavior wouldn't be desirable so opted to dim the timer. But hiding the timer is a better option I can explore more on that. |
What do you think of putting the countdown below the previous/next buttons? If it were below then there shouldn't be shifting from hiding/showing, right? |
99678a7
to
77cb321
Compare
Using And I removed |
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.
Looks great!
Related issue: #501
It was not possible to implement what was described in the done looks like in the ticket, as Video.js requires at least one source to build the player and its controls. And for inaccessible items the sources list is empty in the Canvas.
Therefore this UI was implemented, by wiring the same functions the previous/next buttons use in the player controls to the buttons in the display.
When first item is inaccessible only display the next button; (and only displays previous button when last item is inaccessible)
Previous and next buttons when item is in the middle of the list;
Hides the timer display when auto-advance is turned off;