Skip to content

Commit

Permalink
🐛 Fix z-index in audio enrichment to keep enrichement slides over the…
Browse files Browse the repository at this point in the history
… sound wave element
  • Loading branch information
gcondess committed Dec 7, 2023
1 parent 813b3b6 commit 7cee6f2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pod/enrichment/static/css/videojs-slides.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
z-index: 2;
}

.vjs-wavesurfer.vjs-fluid wave.vjs-wavedisplay {
z-index:0;
}

.vjs-slides {
display: block;
}
Expand All @@ -18,6 +22,7 @@
height: 100%;
bottom: 0;
padding: 0;
z-index:1;
}

.video-slides > li {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@

{% block more_script %}
{{block.super}}
<script>
var enrichmentIsOn = true;
</script>

<script id="enrichment_script_id" src="{% static 'js/videojs-slides.js' %}?ver={{VERSION}}"></script>
{% include 'enrichment/video_enrichment-script.html' %}
{% endblock more_script %}
4 changes: 4 additions & 0 deletions pod/video/templates/videos/video-iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@

<link rel="stylesheet" href="{% static 'css/video-iframe.css' %}?ver={{VERSION}}">

{% if CSS_OVERRIDE %}
<link rel="stylesheet" href="{% static CSS_OVERRIDE %}?ver={{VERSION}}" media="screen">
{% endif %}

<meta itemprop="duration" content="{{ video.duration }}">
<meta itemprop="thumbnailUrl" content="{{ video.get_thumbnail_url }}">
<meta itemprop="contentURL" content="{% if request.is_secure %}https{% else %}http{% endif %}: //{{ request.META.HTTP_HOST }}{% url 'video:video' slug=video.slug %}">
Expand Down

0 comments on commit 7cee6f2

Please sign in to comment.