From 5ad5e8d3657b8074305fd1c8b94cebd5c6cb4af2 Mon Sep 17 00:00:00 2001 From: c0mrade Date: Sun, 1 Feb 2026 21:32:08 +0300 Subject: [PATCH] fix: restore page animations, improve checkbox visibility - Re-enable page transition animations in Telegram Mini App - Change AnimatePresence mode from popLayout to wait (prevents black squares) - Add initial={false} to skip animation on first render - Add custom checkbox styling with better visibility (bg-dark-700, border-dark-600) - Custom checkmark appearance when checked - Light theme checkbox support --- src/components/layout/AppShell/AppShell.tsx | 6 +-- src/styles/globals.css | 57 +++++++++++++++++++++ 2 files changed, 60 insertions(+), 3 deletions(-) diff --git a/src/components/layout/AppShell/AppShell.tsx b/src/components/layout/AppShell/AppShell.tsx index b144a69..238cf51 100644 --- a/src/components/layout/AppShell/AppShell.tsx +++ b/src/components/layout/AppShell/AppShell.tsx @@ -503,11 +503,11 @@ export function AppShell({ children }: AppShellProps) { {/* Main content */}
- {/* Disable animations in Telegram Mini App and admin pages to prevent visual glitches */} - {isTelegramWebApp || location.pathname.startsWith('/admin') ? ( + {/* Disable animations in admin pages (scroll restoration conflicts with animations) */} + {location.pathname.startsWith('/admin') ? ( children ) : ( - +