|
@@ -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:
|