mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
Adjust settings window and fix dynamic dialog
This commit is contained in:
@@ -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}`}
|
||||
|
||||
@@ -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 ? (
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -23,7 +23,7 @@ export function useOpenSettings(tab = SettingsTab.General) {
|
||||
url: location.href,
|
||||
label: 'settings',
|
||||
title: 'Yaak Settings',
|
||||
innerSize: [600, 550],
|
||||
innerSize: [750, 600],
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user