From 68aae28529d93962c01b3d773ac682aab8fce039 Mon Sep 17 00:00:00 2001 From: kazachilo Date: Wed, 26 Mar 2025 10:28:30 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D1=8B=20=D0=BF=D1=80=D0=BE=D0=B1=D0=BB=D0=B5?= =?UTF-8?q?=D0=BC=D1=8B=20=D1=81=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/shared/ImageWithFallback.module.css | 3 +-- src/components/shared/NotificationModal.tsx | 8 +++++--- src/screens/Gallery.tsx | 1 + src/screens/Home.tsx | 1 + 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/shared/ImageWithFallback.module.css b/src/components/shared/ImageWithFallback.module.css index 8e9d5c0..52e142e 100644 --- a/src/components/shared/ImageWithFallback.module.css +++ b/src/components/shared/ImageWithFallback.module.css @@ -7,7 +7,7 @@ display: flex; justify-content: center; align-items: center; - touch-action: none; + touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; @@ -19,7 +19,6 @@ object-fit: cover; transition: opacity 0.3s ease; pointer-events: none; - touch-action: none; } .hidden { diff --git a/src/components/shared/NotificationModal.tsx b/src/components/shared/NotificationModal.tsx index cda775c..8f2ef6e 100644 --- a/src/components/shared/NotificationModal.tsx +++ b/src/components/shared/NotificationModal.tsx @@ -13,6 +13,7 @@ interface NotificationModalProps { showButtons?: boolean; // Новый параметр для управления видимостью всех кнопок continueButtonText?: string; // Новый параметр для изменения текста кнопки "Продолжить" galleryButtonText?: string; // Новый параметр для изменения текста кнопки "В галерею" + isPrimaryGalleryButton?: boolean; // Новый параметр для управления стилем кнопки "В галерею" } const NotificationModal: React.FC = ({ @@ -26,7 +27,8 @@ const NotificationModal: React.FC = ({ showGalleryButton = true, // По умолчанию кнопка "В галерею" видима showButtons = true, // По умолчанию все кнопки видимы continueButtonText = 'Продолжить', // По умолчанию текст кнопки "Продолжить" - galleryButtonText = 'В галерею' // По умолчанию текст кнопки "В галерею" + galleryButtonText = 'В галерею', // По умолчанию текст кнопки "В галерею" + isPrimaryGalleryButton = true // По умолчанию кнопка "В галерею" синяя }) => { if (!isVisible) return null; @@ -52,14 +54,14 @@ const NotificationModal: React.FC = ({
{showGalleryButton && ( )}
); diff --git a/src/screens/Home.tsx b/src/screens/Home.tsx index 276bfd9..d7fef58 100644 --- a/src/screens/Home.tsx +++ b/src/screens/Home.tsx @@ -337,6 +337,7 @@ const Home: React.FC = () => { showGalleryButton={showGalleryButton} showButtons={showButtons} continueButtonText={continueButtonText} + isPrimaryGalleryButton={true} /> {/* Компонент обработки обратной связи */}