Fix gif padding

This commit is contained in:
Zed 2019-06-24 08:24:43 +02:00
parent af9a5d4872
commit 1927858f95
2 changed files with 7 additions and 1 deletions

View File

@ -576,6 +576,12 @@ nav {
font-weight: bold; font-weight: bold;
} }
.media-gif {
display: table-cell;
padding-top: 5px !important;
background-color: unset;
}
video { video {
height: 100%; height: 100%;
width: 100%; width: 100%;

View File

@ -92,7 +92,7 @@
#end proc #end proc
# #
#proc renderGif(gif: Gif): string = #proc renderGif(gif: Gif): string =
<div class="attachments media-body" style="display: table-cell;"> <div class="attachments media-body media-gif">
<div class="gallery-row" style="max-height: unset;"> <div class="gallery-row" style="max-height: unset;">
<div class="attachment image"> <div class="attachment image">
<video class="gif" poster=${gif.thumb.getSigUrl("pic")} autoplay muted loop> <video class="gif" poster=${gif.thumb.getSigUrl("pic")} autoplay muted loop>