mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-23 03:15:40 +00:00
Improve firefox support for images
This commit is contained in:
parent
af167ddef4
commit
160c28eda3
|
@ -67,7 +67,7 @@ a:hover {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
flex-basis: 100%;
|
flex-basis: 100%;
|
||||||
margin-bottom: .2em;
|
margin-bottom: .5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-heading a {
|
.media-heading a {
|
||||||
|
@ -258,7 +258,6 @@ video {
|
||||||
|
|
||||||
.media-gif {
|
.media-gif {
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
padding-top: 5px !important;
|
|
||||||
background-color: unset;
|
background-color: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
#
|
#
|
||||||
#proc renderMediaGroup(tweet: Tweet): string =
|
#proc renderMediaGroup(tweet: Tweet): string =
|
||||||
#let groups = if tweet.photos.len > 2: tweet.photos.distribute(2) else: @[tweet.photos]
|
#let groups = if tweet.photos.len > 2: tweet.photos.distribute(2) else: @[tweet.photos]
|
||||||
#let display = if groups.len == 1 and groups[0].len == 1: "display: table-caption;" else: ""
|
#let display = if groups.len == 1 and groups[0].len == 1: "display: table-cell;" else: ""
|
||||||
#var first = true
|
#var first = true
|
||||||
<div class="attachments" style="${display}">
|
<div class="attachments" style="${display}">
|
||||||
#for photos in groups:
|
#for photos in groups:
|
||||||
|
|
Loading…
Reference in a new issue