Fix iOS theme glitch on notification settings page

This commit is contained in:
Dirk Rost
2026-03-16 23:09:05 +00:00
parent 6570d7d901
commit f02f883e2e
+2 -2
View File
@@ -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