From cbc06fd3c94e538f988b7f20079e339b613f5b58 Mon Sep 17 00:00:00 2001 From: teddit Date: Wed, 27 Jan 2021 18:52:18 +0100 Subject: [PATCH] fix post selftext when expanding it on subreddit view, fixes #137 --- static/css/styles.css | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/static/css/styles.css b/static/css/styles.css index 8ef0496..031e9a0 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -498,10 +498,6 @@ footer a { margin-top: 0; } @media screen and (max-width: 600px) { - #links .link .entry details[open] .preview { - width: 100vw; - transform: translateX(-150px); - } } /* COMMENTS */ .comment { @@ -1548,4 +1544,13 @@ code { .explore#links .link .entry { width: calc(100% - 20px); } + #links .link .entry details[open] .preview { + width: 100vw; + transform: translateX(-150px); + } + #links .link .entry .selftext { + width: calc(100vw - 40px); + transform: translateX(-150px); + margin-left: 10px; + } }