From 64259ef1ead26817dbc5a83b152954bf971685c8 Mon Sep 17 00:00:00 2001 From: Zed Date: Sun, 23 Jun 2019 02:37:25 +0200 Subject: [PATCH] Improve image gallery css --- public/style.css | 2 ++ src/views/tweet.nim | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/style.css b/public/style.css index 7b85124..78eb2ca 100644 --- a/public/style.css +++ b/public/style.css @@ -211,6 +211,8 @@ nav { border-radius: 7px; overflow: hidden; flex-flow: column; + background-color: #0f0f0f; + align-items: center; } .gallery-row { diff --git a/src/views/tweet.nim b/src/views/tweet.nim index c060c2c..e295045 100644 --- a/src/views/tweet.nim +++ b/src/views/tweet.nim @@ -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 -
+
#for photos in groups: #let style = if first: "" else: "margin-top: .25em;"