diff --git a/apps/client/src/widgets/type_widgets/options/appearance.css b/apps/client/src/widgets/type_widgets/options/appearance.css index 8693b5bbdf..72b09d502e 100644 --- a/apps/client/src/widgets/type_widgets/options/appearance.css +++ b/apps/client/src/widgets/type_widgets/options/appearance.css @@ -1,11 +1,16 @@ -/* Font Picker Button */ -.font-picker-button { +/* Font Option Row */ +.font-option-row { + &:disabled { + opacity: 0.5; + pointer-events: none; + } +} + +.font-option-preview { display: flex; - justify-content: space-between; align-items: center; - gap: 12px; - width: 100%; - text-align: left; + gap: 8px; + color: var(--muted-text-color); } /* Font Picker Modal */ diff --git a/apps/client/src/widgets/type_widgets/options/appearance.tsx b/apps/client/src/widgets/type_widgets/options/appearance.tsx index 1f76dd37c7..bc14f302be 100644 --- a/apps/client/src/widgets/type_widgets/options/appearance.tsx +++ b/apps/client/src/widgets/type_widgets/options/appearance.tsx @@ -327,10 +327,10 @@ function Fonts() { onChange={setOverrideThemeFonts} /> - - - - + + + + - <> - + <> + - setShowModal(false)} - title={label} - fontFamily={fontFamily ?? ""} - fontSize={parseInt(fontSize ?? "100", 10)} - onFontFamilyChange={setFontFamily} - onFontSizeChange={(size) => setFontSize(String(size))} - getFontFamily={getFontFamily} - sizeDescription={sizeDescription} - /> - - + setShowModal(false)} + title={label} + fontFamily={fontFamily ?? ""} + fontSize={parseInt(fontSize ?? "100", 10)} + onFontFamilyChange={setFontFamily} + onFontSizeChange={(size) => setFontSize(String(size))} + getFontFamily={getFontFamily} + sizeDescription={sizeDescription} + /> + ); }