From ecfdf00d6abdbcbfa690f11cf7d39bee277c4441 Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Mon, 3 Dec 2018 07:42:27 -0500 Subject: [PATCH] Fix formatting of both card images and regular media --- brutaldon/static/css/brutaldon.css | 8 ++++++-- brutaldon/templates/main/toot_partial.html | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/brutaldon/static/css/brutaldon.css b/brutaldon/static/css/brutaldon.css index 025529e..8f4a8d3 100644 --- a/brutaldon/static/css/brutaldon.css +++ b/brutaldon/static/css/brutaldon.css @@ -31,13 +31,11 @@ img.fav-avatar { .is-max-128 { max-height: 128px; max-width: 128px; - padding-top: 75%; } .is-max-256 { max-height: 256px; max-width: 256px; - padding-top: 25%; } @@ -199,3 +197,9 @@ body.has-navbar-fixed-top, html.has-navbar-fixed-top { { padding: 1em; } + +.card-image figure +{ + padding-top: 25%; + +} diff --git a/brutaldon/templates/main/toot_partial.html b/brutaldon/templates/main/toot_partial.html index d61a5dc..9ed4941 100644 --- a/brutaldon/templates/main/toot_partial.html +++ b/brutaldon/templates/main/toot_partial.html @@ -59,6 +59,7 @@ {{ toot.card.title }} + {% if toot.card.image %}
@@ -66,6 +67,7 @@
+ {% endif %}

{{ toot.card.description }}