From ef943493410c41f0d7be6b9af7458768dfd592f9 Mon Sep 17 00:00:00 2001 From: dm1sh Date: Sat, 29 Jul 2023 14:04:48 +0300 Subject: [PATCH] Fixed story preview styling --- front/src/components/StoriesPreview.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/front/src/components/StoriesPreview.tsx b/front/src/components/StoriesPreview.tsx index 8871be0..3a88507 100644 --- a/front/src/components/StoriesPreview.tsx +++ b/front/src/components/StoriesPreview.tsx @@ -28,11 +28,12 @@ const styles = { } as CSSProperties, link: { textDecoration: 'none', - color: 'var(--bs-body-color)' + color: 'var(--bs-body-color)', + maxWidth: 'calc(25vh * 9 / 16)', + display: 'inline-block', } as CSSProperties, image: { height: '25vh', - maxWidth: 'calc(25vh * 9 / 16)', objectFit: 'contain', borderRadius: 12, marginBottom: 5,