Skip to content

Commit

Permalink
Prevent video.js time-divider from being hidden when Live is off (#1252)
Browse files Browse the repository at this point in the history
  • Loading branch information
Badatos authored Jan 21, 2025
1 parent e364d9c commit 968f3b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 1 addition & 5 deletions pod/live/static/css/event.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@
* Esup-Pod live event styles
*/

.current_event {
.current-event {
stroke: red;
}

.video-js .vjs-time-control {
display: block;
}

.video-js .vjs-remaining-time {
display: none;
}
Expand Down
2 changes: 1 addition & 1 deletion pod/live/templates/live/event_card.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<span class="text-muted small d-flex">
{% if event.is_current %}
<span data-toggle="tooltip" title="{% trans 'Current event' %}">
<i class="bi bi-soundwave current_event" aria-hidden="true"></i>
<i class="bi bi-soundwave current-event" aria-hidden="true"></i>
</span>
{% endif %}
<span data-toggle="tooltip" title="{{event.broadcaster.name}}">
Expand Down
6 changes: 4 additions & 2 deletions pod/video/static/css/videojs-controlbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@
margin-right: 1em;
}

.video-js .vjs-current-time {
.video-js .vjs-time-control{
display: block;
}

.video-js .vjs-current-time {
padding-right: 0;
}

Expand All @@ -35,7 +38,6 @@
}

.video-js .vjs-duration {
display: block;
padding-left: 0;
}

Expand Down

0 comments on commit 968f3b1

Please sign in to comment.