From 426277ab27b1b88352ce27f93c8342b43e4f8f1d Mon Sep 17 00:00:00 2001 From: Anna Date: Fri, 22 Nov 2024 12:24:39 +0300 Subject: [PATCH 1/3] feat: fix vertical scroll in gallery in fullview mode --- packages/gallery/src/index.module.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/gallery/src/index.module.css b/packages/gallery/src/index.module.css index 0ca13db33e..38a4df9c7b 100644 --- a/packages/gallery/src/index.module.css +++ b/packages/gallery/src/index.module.css @@ -2,7 +2,8 @@ .container { position: relative; - overflow: hidden; + overflow-x: hidden; + overflow-y: auto; display: flex; flex-direction: column; justify-content: space-between; From 51a85f8ea0dea5f73d9887f3171955a1de7ab1bb Mon Sep 17 00:00:00 2001 From: Anna Date: Fri, 22 Nov 2024 12:31:30 +0300 Subject: [PATCH 2/3] feat: fix vertical scroll in gallery in fullview mode --- .changeset/unlucky-pots-begin.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/unlucky-pots-begin.md diff --git a/.changeset/unlucky-pots-begin.md b/.changeset/unlucky-pots-begin.md new file mode 100644 index 0000000000..820dfceae1 --- /dev/null +++ b/.changeset/unlucky-pots-begin.md @@ -0,0 +1,5 @@ +--- +'@alfalab/core-components-gallery': patch +--- + +Добавлен фикс вертикального скролла в галерею в полноэкранном режиме From a32ff7e4082e61b015635cc4f550636749cba746 Mon Sep 17 00:00:00 2001 From: Anna Date: Fri, 22 Nov 2024 18:49:37 +0300 Subject: [PATCH 3/3] feat: add single type image to gallery component --- packages/gallery/src/Component.tsx | 6 +++++- packages/gallery/src/index.module.css | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/gallery/src/Component.tsx b/packages/gallery/src/Component.tsx index 530d6d7f76..c6938f5823 100644 --- a/packages/gallery/src/Component.tsx +++ b/packages/gallery/src/Component.tsx @@ -233,7 +233,11 @@ export const Gallery: FC = ({ Backdrop={Backdrop} onUnmount={onUnmount} > -
+
{isDesktop ?
: } {images.length === 1 ? : }