diff --git a/src/views/tweet.nim b/src/views/tweet.nim
index 734eff3..944063b 100644
--- a/src/views/tweet.nim
+++ b/src/views/tweet.nim
@@ -34,16 +34,15 @@
#var first = true
#for photos in groups:
- #let style = if first: "" else: "margin-top: .25em;"
-
+ #let margin = if not first: "margin-top: .25em;" else: ""
+ #let flex = if photos.len > 1 or groups.len > 1: "display: flex;" else: ""
+