Adjust settings window and fix dynamic dialog

This commit is contained in:
Gregory Schier
2025-01-13 12:11:38 -08:00
parent 72ab3f0a3c
commit 4295a09515
4 changed files with 6 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ export function SettingsGeneral() {
name="updateChannel"
label="Update Channel"
labelPosition="left"
labelClassName="w-[12rem]"
labelClassName="w-[14rem]"
size="sm"
value={settings.updateChannel}
onChange={(updateChannel) => updateSettings.mutate({ updateChannel })}
@@ -57,7 +57,7 @@ export function SettingsGeneral() {
name="switchWorkspaceBehavior"
label="Switch Workspace Behavior"
labelPosition="left"
labelClassName="w-[12rem]"
labelClassName="w-[14rem]"
size="sm"
event="workspace-switch-behavior"
value={
@@ -100,6 +100,7 @@ export function SettingsGeneral() {
size="sm"
name="requestTimeout"
label="Request Timeout (ms)"
labelClassName="w-[14rem]"
placeholder="0"
labelPosition="left"
defaultValue={`${workspace.settingRequestTimeout}`}

View File

@@ -80,7 +80,7 @@ export function Dialog({
size === 'md' && 'w-[45rem]',
size === 'lg' && 'w-[65rem]',
size === 'full' && 'w-[100vw] h-[100vh]',
size === 'dynamic' && 'min-w-[20rem] max-w-[100vw] w-full',
size === 'dynamic' && 'min-w-[20rem] max-w-[100vw]',
)}
>
{title ? (

View File

@@ -98,7 +98,7 @@ export function PlainInput({
labelPosition === 'top' && 'flex-row gap-0.5',
)}
>
<Label htmlFor={id} className={classNames(labelClassName, hideLabel && 'sr-only')}>
<Label htmlFor={id} className={classNames(labelClassName, 'flex-shrink-0', hideLabel && 'sr-only')}>
{label}
</Label>
<HStack

View File

@@ -23,7 +23,7 @@ export function useOpenSettings(tab = SettingsTab.General) {
url: location.href,
label: 'settings',
title: 'Yaak Settings',
innerSize: [600, 550],
innerSize: [750, 600],
});
},
});