From d9c5f3f74d131aa573a097712bdf5d9294d52e7a Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Thu, 22 Oct 2020 01:33:01 +0000 Subject: [PATCH] twitterchiver/viewer: don't crop images --- go/twitterchiver/viewer/templates/tweets.html | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/go/twitterchiver/viewer/templates/tweets.html b/go/twitterchiver/viewer/templates/tweets.html index a7d767ff6a..f4ea95cd71 100644 --- a/go/twitterchiver/viewer/templates/tweets.html +++ b/go/twitterchiver/viewer/templates/tweets.html @@ -85,25 +85,12 @@ a:hover { grid-template-rows: 50% 50%; grid-auto-flow: dense; } -.media-item:only-child { +.media-item:only-child, +.media-item:nth-child(3):last-child { grid-column-end: span 2; } -.media-link { - position: relative; - display: block; -} -.media-link::before { - content: ""; - display: block; - padding-bottom: calc(100% / (1920/1080)); -} .media-img { - position: absolute; - top: 0; - left: 0; - height: 100%; width: 100%; - object-fit: cover; } .media-video { width: 100%;