From f02f883e2e466e8bd3958e8a84e90cba3787abf0 Mon Sep 17 00:00:00 2001 From: Dirk Rost Date: Mon, 16 Mar 2026 23:09:05 +0000 Subject: [PATCH] Fix iOS theme glitch on notification settings page --- src/pages/ProfilePage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/ProfilePage.tsx b/src/pages/ProfilePage.tsx index b80d7a7b..0e5c8b23 100644 --- a/src/pages/ProfilePage.tsx +++ b/src/pages/ProfilePage.tsx @@ -1,4 +1,4 @@ -import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; +import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react'; import { useParams, Link } from 'react-router-dom'; import { useInView } from 'react-intersection-observer'; import { useNostr } from '@nostrify/react'; @@ -1215,7 +1215,7 @@ export function ProfilePage() { ); const effectiveProfileBackground = profileThemeColors ? profileThemeBackground : undefined; - useEffect(() => { + useLayoutEffect(() => { if (!effectiveProfileColors) return; // Inject the profile theme's CSS vars onto :root