diff --git a/assets/css/default.css b/assets/css/default.css index 90a65241..d9a58329 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -160,7 +160,9 @@ body a.pure-button { button.pure-button-primary, body a.pure-button-primary, .channel-owner:hover, -.channel-owner:focus { +.channel-owner:focus, +.chapter:hover, +.chapter:focus { background-color: #a0a0a0; color: rgba(35, 35, 35, 1); } @@ -797,9 +799,26 @@ h1, h2, h3, h4, h5, p, } #download_widget { - width: 100%; + width: 100%; } + +.description-chapters-section { + white-space: normal; +} + .description-chapters-content-container { display: flex; flex-direction: row; + gap: 5px; + overflow: scroll; + + overflow-y: hidden; +} + +.chapter { + padding: 3px; +} + +.chapter .thumbnail { + width: 200px; } diff --git a/src/invidious/views/components/description_chapters_widget.ecr b/src/invidious/views/components/description_chapters_widget.ecr index e604cd58..8fca9d36 100644 --- a/src/invidious/views/components/description_chapters_widget.ecr +++ b/src/invidious/views/components/description_chapters_widget.ecr @@ -1,11 +1,11 @@ <% if !chapters.empty? %> -
<%-= recode_length_seconds(chapter.start_ms.milliseconds.total_seconds) %>
-<%-=chapter.title%>
- -<%-= recode_length_seconds(chapter.start_ms.milliseconds.total_seconds) -%>
+<%-=chapter.title-%>
+