diff --git a/assets/css/default.css b/assets/css/default.css index 504329cd..b5d8cfad 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -761,16 +761,54 @@ h1, h2, h3, h4, h5, p, } div.compilation-video-panel { - padding: 28.125%; + display:flex; + justify-content:flex-start; + width:calc(100% - 20px); + height:100px; + border:1px solid #f0f0f0; + margin: 10px; + /*background: #d9d9d9;*/ +} + +div.compilation-order-swap-arrows { + display:flex; + flex-direction:column; + justify-content:space-between; +} + +svg.compilation-video-swap-arrow { + border: solid black; + width:20px; + height:50%; + background-color: beige; + margin: 10px; +} + +div.compilation-video-input-panel { + display:flex; + flex-direction:column; + min-width: 0; + margin: 10px; +} + +div.compilation-video-title { + display:flex; + justify-content:flex-start; +} + +span.compilation-video-title { + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; +} + +div.compilation-video-timestamps { + display:flex; + justify-content: flex-start; +} + + +div.compilation-video-thumbnail { position: relative; box-sizing: border-box; } - -img.compilation-video-panel { - position: absolute; - width: 100%; - height: 100%; - left: 0; - top: 0; - object-fit: cover; -} \ No newline at end of file diff --git a/src/invidious/views/components/compilation_video.ecr b/src/invidious/views/components/compilation_video.ecr index 7a9d36e4..6d6561a2 100644 --- a/src/invidious/views/components/compilation_video.ecr +++ b/src/invidious/views/components/compilation_video.ecr @@ -1,20 +1,32 @@