From ef58ad2bf6e3b8fbe76fa6406dfabba5f3a18f47 Mon Sep 17 00:00:00 2001 From: igor_nadein Date: Wed, 25 Feb 2026 02:01:34 +0300 Subject: [PATCH] =?UTF-8?q?style:=20=D1=83=D0=BD=D0=B8=D1=84=D0=B8=D1=86?= =?UTF-8?q?=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20=D1=81=D1=82=D0=B8?= =?UTF-8?q?=D0=BB=D0=B8=20=D0=BC=D0=BE=D0=B4=D0=B0=D0=BB=D1=8C=D0=BD=D1=8B?= =?UTF-8?q?=D1=85=20=D0=BE=D0=BA=D0=BE=D0=BD=20=D0=BA=D0=B0=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B4=D0=B0=D1=80=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Проблема: модальные окна имели разные стили overlay и z-index: - EventModal: без backdrop-blur-sm, z-[100] - ViewEventDetailsModal/ViewDayEventsModal: с backdrop-blur-sm, z-50 - CalendarSubscriptionsModal: без backdrop-blur-sm, z-[100] Изменения: - Все модальные окна теперь используют единый стиль overlay: * bg-black/50 backdrop-blur-sm (затемнение + размытие фона) * z-[100] (одинаковый z-index для всех) * p-4 (отступы для мобильных устройств) - Добавлены плавные transitions: * Overlay: transition-all duration-200 * Модальное окно: transition-all duration-300 ease-out - Улучшен UX: * Единообразное визуальное оформление * Плавные переходы при открытии/закрытии * Красивый эффект размытия фона Затронутые компоненты: - EventModal.tsx - ViewEventDetailsModal.tsx - ViewDayEventsModal.tsx - CalendarSubscriptionsModal.tsx --- frontend/src/components/CalendarSubscriptionsModal.tsx | 4 ++-- frontend/src/components/EventModal.tsx | 4 ++-- frontend/src/components/ViewDayEventsModal.tsx | 4 ++-- frontend/src/components/ViewEventDetailsModal.tsx | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/CalendarSubscriptionsModal.tsx b/frontend/src/components/CalendarSubscriptionsModal.tsx index 0c140e43..62d80366 100644 --- a/frontend/src/components/CalendarSubscriptionsModal.tsx +++ b/frontend/src/components/CalendarSubscriptionsModal.tsx @@ -138,8 +138,8 @@ export function CalendarSubscriptionsModal({ isOpen, onClose, onUpdate }: Props) if (!isOpen) return null; return ( -
-
+
+
{/* Header */}

Подписки на календари

diff --git a/frontend/src/components/EventModal.tsx b/frontend/src/components/EventModal.tsx index cbaa983b..51a02e95 100644 --- a/frontend/src/components/EventModal.tsx +++ b/frontend/src/components/EventModal.tsx @@ -331,8 +331,8 @@ export function EventModal({ if (!isOpen || !editingEvent) return null; return ( -
-
+
+

{editingEvent.id ? "Редактировать событие" : "Создать событие"} diff --git a/frontend/src/components/ViewDayEventsModal.tsx b/frontend/src/components/ViewDayEventsModal.tsx index 7d26c05b..189e5132 100644 --- a/frontend/src/components/ViewDayEventsModal.tsx +++ b/frontend/src/components/ViewDayEventsModal.tsx @@ -42,8 +42,8 @@ export function ViewDayEventsModal({ }; return ( -
-
+
+

События на {capitalizedDate}

diff --git a/frontend/src/components/ViewEventDetailsModal.tsx b/frontend/src/components/ViewEventDetailsModal.tsx index 6bc82722..aeb004f9 100644 --- a/frontend/src/components/ViewEventDetailsModal.tsx +++ b/frontend/src/components/ViewEventDetailsModal.tsx @@ -65,8 +65,8 @@ export function ViewEventDetailsModal({ const capitalizedEnd = formatDateTime(event.end).charAt(0).toUpperCase() + formatDateTime(event.end).slice(1); return ( -
-
+
+