mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
feat(app): redesign discovery and align skeletons with rendered UI
This commit is contained in:
1 parent
e054aa96be
commit
98c40c6979
380 files changed
+50869
-32207
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
import {HdrDisplayMode} from '@app/features/accessibility/state/Accessibility';
|
||||
import {remFromPx} from '@app/features/theme/layout/RemFromPx';
|
||||
import {useEffect} from 'react';
|
||||
import {useLayoutEffect} from 'react';
|
||||
|
||||
interface ThemeCssVariablesOptions {
|
||||
effectiveTheme: string;
|
||||
@@ -27,7 +27,7 @@ export function useThemeCssVariables({
|
||||
messageGroupSpacing,
|
||||
hdrDisplayMode,
|
||||
}: ThemeCssVariablesOptions): void {
|
||||
useEffect(() => {
|
||||
useLayoutEffect(() => {
|
||||
const htmlNode = document.documentElement;
|
||||
htmlNode.classList.add(`theme-${effectiveTheme}`);
|
||||
htmlNode.style.setProperty('--saturation-factor', saturationFactor.toString());
|
||||
|
||||
Reference in new issue
Block a user