Improve image gallery css

このコミットが含まれているのは:
Zed 2019-06-23 02:37:25 +02:00
コミット 64259ef1ea
2個のファイルの変更3行の追加2行の削除

ファイルの表示

@ -211,6 +211,8 @@ nav {
border-radius: 7px;
overflow: hidden;
flex-flow: column;
background-color: #0f0f0f;
align-items: center;
}
.gallery-row {

ファイルの表示

@ -31,9 +31,8 @@
#
#proc renderMediaGroup(tweet: Tweet): string =
#let groups = if tweet.photos.len > 2: tweet.photos.distribute(2) else: @[tweet.photos]
#let groupStyle = if groups.len == 1 and groups[0].len < 2: "" else: "background-color: #0f0f0f;"
#var first = true
<div class="attachments media-body" style="${groupStyle}">
<div class="attachments media-body">
#for photos in groups:
#let style = if first: "" else: "margin-top: .25em;"
<div class="gallery-row cover-fit" style="${style}">