From 80a9a4c9a55c08f254c2a2fd2d84e7ef03a77cad Mon Sep 17 00:00:00 2001 From: Ilya Y <75578537+ilya-bkv@users.noreply.github.com> Date: Mon, 13 Nov 2023 19:55:32 +0300 Subject: [PATCH] Update lightbox (#313) update_lightbox --- src/components/Article/Article.module.scss | 14 ++++---------- src/components/Article/FullArticle.tsx | 15 +++++++-------- .../_shared/Lightbox/Lightbox.module.scss | 6 ++++-- src/components/_shared/Lightbox/Lightbox.tsx | 8 +++++++- src/pages/profile/Settings.module.scss | 8 ++++++-- src/pages/profile/profileSettings.page.tsx | 11 ++++++++++- 6 files changed, 38 insertions(+), 24 deletions(-) diff --git a/src/components/Article/Article.module.scss b/src/components/Article/Article.module.scss index ed15b000..d2bc419d 100644 --- a/src/components/Article/Article.module.scss +++ b/src/components/Article/Article.module.scss @@ -23,22 +23,16 @@ img { } } -.shoutCover { - background-size: cover; - height: 0; - padding-bottom: 56.2%; +.articleContent { + img { + cursor: zoom-in; + } } .shoutBody { font-size: 1.6rem; line-height: 1.6; - img { - display: block; - margin-bottom: 0.5em; - cursor: zoom-in; - } - blockquote, blockquote[data-type='punchline'] { clear: both; diff --git a/src/components/Article/FullArticle.tsx b/src/components/Article/FullArticle.tsx index 39586bb4..ed19fece 100644 --- a/src/components/Article/FullArticle.tsx +++ b/src/components/Article/FullArticle.tsx @@ -28,6 +28,7 @@ import { AuthorBadge } from '../Author/AuthorBadge' import { getImageUrl } from '../../utils/getImageUrl' import { FeedArticlePopup } from '../Feed/FeedArticlePopup' import { Lightbox } from '../_shared/Lightbox' +import { Image } from '../_shared/Image' type Props = { article: Shout @@ -252,7 +253,10 @@ export const FullArticle = (props: Props) => {