mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-22 17:39:46 +01:00
Tweak settings labels
This commit is contained in:
@@ -109,7 +109,7 @@ export function SettingsAppearance() {
|
|||||||
<Select
|
<Select
|
||||||
name="appearance"
|
name="appearance"
|
||||||
label="Appearance"
|
label="Appearance"
|
||||||
labelPosition="left"
|
labelPosition="top"
|
||||||
size="sm"
|
size="sm"
|
||||||
value={settings.appearance}
|
value={settings.appearance}
|
||||||
onChange={(appearance) => {
|
onChange={(appearance) => {
|
||||||
@@ -123,7 +123,6 @@ export function SettingsAppearance() {
|
|||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
<HStack space={2}>
|
<HStack space={2}>
|
||||||
<div>Theme</div>
|
|
||||||
{(settings.appearance === 'system' || settings.appearance === 'light') && (
|
{(settings.appearance === 'system' || settings.appearance === 'light') && (
|
||||||
<Select
|
<Select
|
||||||
hideLabel
|
hideLabel
|
||||||
|
|||||||
@@ -133,7 +133,11 @@ export const Input = forwardRef<EditorView | undefined, InputProps>(function Inp
|
|||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
htmlFor={id}
|
htmlFor={id}
|
||||||
className={classNames(labelClassName, 'text-fg whitespace-nowrap', hideLabel && 'sr-only')}
|
className={classNames(
|
||||||
|
labelClassName,
|
||||||
|
'text-fg-subtle whitespace-nowrap',
|
||||||
|
hideLabel && 'sr-only',
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
@@ -85,7 +85,11 @@ export const PlainInput = forwardRef<HTMLInputElement, PlainInputProps>(function
|
|||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
htmlFor={id}
|
htmlFor={id}
|
||||||
className={classNames(labelClassName, 'text-fg whitespace-nowrap', hideLabel && 'sr-only')}
|
className={classNames(
|
||||||
|
labelClassName,
|
||||||
|
'text-fg-subtle whitespace-nowrap',
|
||||||
|
hideLabel && 'sr-only',
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
@@ -51,7 +51,11 @@ export function Select<T extends string>({
|
|||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
htmlFor={id}
|
htmlFor={id}
|
||||||
className={classNames(labelClassName, 'text-fg whitespace-nowrap', hideLabel && 'sr-only')}
|
className={classNames(
|
||||||
|
labelClassName,
|
||||||
|
'text-fg-subtle whitespace-nowrap',
|
||||||
|
hideLabel && 'sr-only',
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user