mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-06 13:19:31 -05:00
Skip size variable for non root themes
This commit is contained in:
parent
42020fe7bc
commit
dbf345a815
|
|
@ -364,9 +364,13 @@ function useCustomThemeVars(): React.CSSProperties | undefined {
|
|||
|
||||
if (data?.customTheme) {
|
||||
const styleObj: Record<string, number> = {};
|
||||
|
||||
for (const [key, value] of Object.entries(data.customTheme)) {
|
||||
// Skips size variables for themes that arent the user's own
|
||||
if (match.id !== "root" && key.includes("--_size")) continue;
|
||||
styleObj[key] = value;
|
||||
}
|
||||
|
||||
styles = styleObj as React.CSSProperties;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user