From 1955fc87ee98af91e564c0719136aa637ce01bba Mon Sep 17 00:00:00 2001 From: npeter83 Date: Sun, 9 Aug 2026 05:05:59 +0200 Subject: [PATCH] =?UTF-8?q?refactor(glass):=20R10=20S3a=20=E2=80=94=20glas?= =?UTF-8?q?s-card=20notification=20rows=20+=20perf-aware=20.overlay-backdr?= =?UTF-8?q?op?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - NotificationsPanel per-row .glass -> glass-card (the rows are cards, not panel surface). - New .overlay-backdrop recipe (4px blur = backdrop-blur-xs) with a data-perf override that DROPS the blur. The viewport-sized modal scrim blur (Modal/PlayerModal/Welcome) was a raw backdrop-blur-xs utility that survived perf mode while every .glass had its blur dropped — the most expensive blur in the app. Overlays keep their bg-black/NN. - gotcha: write ONLY the standard backdrop-filter; a manual -webkit- line makes lightningcss drop the standard prop (webkit-only output -> no blur in Firefox). --- frontend/src/components/Modal.tsx | 2 +- frontend/src/components/NotificationsPanel.tsx | 4 ++-- frontend/src/components/PlayerModal.tsx | 2 +- frontend/src/components/Welcome.tsx | 2 +- frontend/src/index.css | 11 +++++++++++ 5 files changed, 16 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/Modal.tsx b/frontend/src/components/Modal.tsx index 41c5e768..041230a3 100644 --- a/frontend/src/components/Modal.tsx +++ b/frontend/src/components/Modal.tsx @@ -56,7 +56,7 @@ export default function Modal({ return createPortal(
{ pressedOnBackdrop.current = e.target === e.currentTarget; }} diff --git a/frontend/src/components/NotificationsPanel.tsx b/frontend/src/components/NotificationsPanel.tsx index 7a731249..aad9cd7d 100644 --- a/frontend/src/components/NotificationsPanel.tsx +++ b/frontend/src/components/NotificationsPanel.tsx @@ -255,7 +255,7 @@ function NotificationRow({ } return (
@@ -340,7 +340,7 @@ function ClientActivityRow({ const access = n.meta?.kind === "access-requests" ? n.meta : null; return (
diff --git a/frontend/src/components/PlayerModal.tsx b/frontend/src/components/PlayerModal.tsx index 36259808..bb403baf 100644 --- a/frontend/src/components/PlayerModal.tsx +++ b/frontend/src/components/PlayerModal.tsx @@ -889,7 +889,7 @@ export default function PlayerModal({