From 6ed7beabf3e2973ce25b7f46cf96853534bb5368 Mon Sep 17 00:00:00 2001 From: Damillora Date: Wed, 11 Nov 2020 12:14:57 +0700 Subject: [PATCH] Finally fix images --- assets/css/styles.css | 3 ++- partials/post-background.hbs | 14 ++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/assets/css/styles.css b/assets/css/styles.css index 3114b10..00e3107 100644 --- a/assets/css/styles.css +++ b/assets/css/styles.css @@ -298,10 +298,11 @@ footer { .post-image-box { @apply relative; width: 100%; + overflow: hidden; } @screen md { .post-image-box { - width: 35%; + width: 35vw; min-width: 300px; max-width: 450px; } diff --git a/partials/post-background.hbs b/partials/post-background.hbs index 90fa4e7..fe1c926 100644 --- a/partials/post-background.hbs +++ b/partials/post-background.hbs @@ -10,10 +10,12 @@ If the template in question has a background image, then we render responsive im for it, and apply those styles to the
tag. Else, we just output a
tag with a `no-image` class so we can style it accordingly. --}} -
-{{#if feature_image}} - -{{else}} - -{{/if}} +
+
+ {{#if feature_image}} + + {{else}} + + {{/if}} +
\ No newline at end of file