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} /> {/* Компонент обработки обратной связи */}