From 3fba6f5728a80025e1928e9542dcb52a090c5e44 Mon Sep 17 00:00:00 2001 From: syeopite Date: Mon, 21 Aug 2023 00:44:20 -0700 Subject: [PATCH] Fix description chapter component design --- assets/css/default.css | 23 +++++++++++++++++-- .../description_chapters_widget.ecr | 18 +++++++-------- 2 files changed, 30 insertions(+), 11 deletions(-) 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? %> -
-
Chapters
+
+

Chapters

<% chapters.each do | chapter |%> - + <% end %>
+
-
<% end %> \ No newline at end of file