Prechádzať zdrojové kódy

Unset max height for videos with title/description

Zed 6 rokov pred
rodič
commit
50ebafdf79
2 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 1 0
      src/sass/tweet/card.scss
  2. 1 1
      src/views/tweet.nim

+ 1 - 0
src/sass/tweet/card.scss

@@ -4,6 +4,7 @@
 .card {
     margin: 5px 0;
     pointer-events: all;
+    max-height: unset;
 }
 
 .card-container {

+ 1 - 1
src/views/tweet.nim

@@ -79,7 +79,7 @@ proc renderVideo(video: Video; prefs: Prefs; path: string): VNode =
   let container =
     if video.description.len > 0 or video.title.len > 0: " card-container"
     else: ""
-  buildHtml(tdiv(class="attachments")):
+  buildHtml(tdiv(class="attachments card")):
     tdiv(class="gallery-video" & container):
       tdiv(class="attachment video-container"):
         let thumb = getPicUrl(video.thumb)