From 8b5625aa7bbdbc89ee3355f4b258ce00690b891f Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Fri, 6 Mar 2026 15:11:02 -0500 Subject: [PATCH] remove pub picker on subpage and fix font label --- components/ThemeManager/PageThemeSetter.tsx | 1 + components/ThemeManager/Pickers/PageThemePickers.tsx | 3 ++- components/ThemeManager/Pickers/TextPickers.tsx | 4 ++-- components/ThemeManager/PubPickers/PubFontPicker.tsx | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/components/ThemeManager/PageThemeSetter.tsx b/components/ThemeManager/PageThemeSetter.tsx index f34d07b1..04602e67 100644 --- a/components/ThemeManager/PageThemeSetter.tsx +++ b/components/ThemeManager/PageThemeSetter.tsx @@ -66,6 +66,7 @@ export const PageThemeSetter = (props: { entityID: string }) => { entityID={props.entityID} openPicker={openPicker} setOpenPicker={(pickers) => setOpenPicker(pickers)} + hideFonts /> void; home?: boolean; + hideFonts?: boolean; }) => { let { rep } = useReplicache(); let set = useMemo(() => { @@ -59,7 +60,7 @@ export const PageThemePickers = (props: { openPicker={props.openPicker} setOpenPicker={props.setOpenPicker} /> - {!props.home && ( + {!props.home && !props.hideFonts && ( <> diff --git a/components/ThemeManager/Pickers/TextPickers.tsx b/components/ThemeManager/Pickers/TextPickers.tsx index 2ef60298..e7db748a 100644 --- a/components/ThemeManager/Pickers/TextPickers.tsx +++ b/components/ThemeManager/Pickers/TextPickers.tsx @@ -98,12 +98,12 @@ export const FontPicker = (props: { {showCustomInput ? (
- Paste a Google Fonts URL or font name + Paste a Google Font name
setCustomFontValue(e.currentTarget.value)} onKeyDown={(e) => { diff --git a/components/ThemeManager/PubPickers/PubFontPicker.tsx b/components/ThemeManager/PubPickers/PubFontPicker.tsx index ce94853b..7f7ac099 100644 --- a/components/ThemeManager/PubPickers/PubFontPicker.tsx +++ b/components/ThemeManager/PubPickers/PubFontPicker.tsx @@ -67,12 +67,12 @@ export const PubFontPicker = (props: { {showCustomInput ? (
- Paste a Google Fonts URL or font name + Paste a Google Font name
setCustomFontValue(e.currentTarget.value)} onKeyDown={(e) => { -- 2.51.2