mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 09:38:29 +02:00
Adjust settings window and fix dynamic dialog
This commit is contained in:
@@ -34,7 +34,7 @@ export function SettingsGeneral() {
|
|||||||
name="updateChannel"
|
name="updateChannel"
|
||||||
label="Update Channel"
|
label="Update Channel"
|
||||||
labelPosition="left"
|
labelPosition="left"
|
||||||
labelClassName="w-[12rem]"
|
labelClassName="w-[14rem]"
|
||||||
size="sm"
|
size="sm"
|
||||||
value={settings.updateChannel}
|
value={settings.updateChannel}
|
||||||
onChange={(updateChannel) => updateSettings.mutate({ updateChannel })}
|
onChange={(updateChannel) => updateSettings.mutate({ updateChannel })}
|
||||||
@@ -57,7 +57,7 @@ export function SettingsGeneral() {
|
|||||||
name="switchWorkspaceBehavior"
|
name="switchWorkspaceBehavior"
|
||||||
label="Switch Workspace Behavior"
|
label="Switch Workspace Behavior"
|
||||||
labelPosition="left"
|
labelPosition="left"
|
||||||
labelClassName="w-[12rem]"
|
labelClassName="w-[14rem]"
|
||||||
size="sm"
|
size="sm"
|
||||||
event="workspace-switch-behavior"
|
event="workspace-switch-behavior"
|
||||||
value={
|
value={
|
||||||
@@ -100,6 +100,7 @@ export function SettingsGeneral() {
|
|||||||
size="sm"
|
size="sm"
|
||||||
name="requestTimeout"
|
name="requestTimeout"
|
||||||
label="Request Timeout (ms)"
|
label="Request Timeout (ms)"
|
||||||
|
labelClassName="w-[14rem]"
|
||||||
placeholder="0"
|
placeholder="0"
|
||||||
labelPosition="left"
|
labelPosition="left"
|
||||||
defaultValue={`${workspace.settingRequestTimeout}`}
|
defaultValue={`${workspace.settingRequestTimeout}`}
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ export function Dialog({
|
|||||||
size === 'md' && 'w-[45rem]',
|
size === 'md' && 'w-[45rem]',
|
||||||
size === 'lg' && 'w-[65rem]',
|
size === 'lg' && 'w-[65rem]',
|
||||||
size === 'full' && 'w-[100vw] h-[100vh]',
|
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 ? (
|
{title ? (
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ export function PlainInput({
|
|||||||
labelPosition === 'top' && 'flex-row gap-0.5',
|
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}
|
||||||
</Label>
|
</Label>
|
||||||
<HStack
|
<HStack
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export function useOpenSettings(tab = SettingsTab.General) {
|
|||||||
url: location.href,
|
url: location.href,
|
||||||
label: 'settings',
|
label: 'settings',
|
||||||
title: 'Yaak Settings',
|
title: 'Yaak Settings',
|
||||||
innerSize: [600, 550],
|
innerSize: [750, 600],
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user