mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-04 23:32:54 +01:00
scroll dialog
This commit is contained in:
8 files changed
+278
-300
No files matched your search
@@ -31,44 +31,44 @@ export const SettingsDialog = withLocale(
|
||||
<Dialog.Trigger className={styles.trigger}>{children}</Dialog.Trigger>
|
||||
|
||||
<Dialog.Portal>
|
||||
<Dialog.Overlay />
|
||||
<Dialog.Overlay>
|
||||
<Dialog.Content>
|
||||
<Dialog.Header>
|
||||
<Dialog.Title>{strings.navbar.settings}</Dialog.Title>
|
||||
</Dialog.Header>
|
||||
|
||||
<Dialog.Content>
|
||||
<Dialog.Header>
|
||||
<Dialog.Title>{strings.navbar.settings}</Dialog.Title>
|
||||
</Dialog.Header>
|
||||
<Dialog.Body>
|
||||
<div className={styles.row}>
|
||||
<Text>{strings.settings.language}</Text>
|
||||
<LocaleSelect options={localeOptions} />
|
||||
</div>
|
||||
|
||||
<Dialog.Body>
|
||||
<div className={styles.row}>
|
||||
<Text>{strings.settings.language}</Text>
|
||||
<LocaleSelect options={localeOptions} />
|
||||
</div>
|
||||
<div className={styles.row}>
|
||||
<Text>{strings.settings.auto_load_models}</Text>
|
||||
<Switch
|
||||
checked={autoLoadModels}
|
||||
onCheckedChange={(checked) => {
|
||||
App.mutate((draft) => {
|
||||
draft.autoLoadModels = checked;
|
||||
});
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className={styles.row}>
|
||||
<Text>{strings.settings.auto_load_models}</Text>
|
||||
<Switch
|
||||
checked={autoLoadModels}
|
||||
onCheckedChange={(checked) => {
|
||||
App.mutate((draft) => {
|
||||
draft.autoLoadModels = checked;
|
||||
});
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className={styles.row}>
|
||||
<Text>{strings.settings.developer_mode}</Text>
|
||||
<Switch
|
||||
checked={developerMode}
|
||||
onCheckedChange={(checked) => {
|
||||
App.mutate((draft) => {
|
||||
draft.developerMode = checked;
|
||||
});
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</Dialog.Body>
|
||||
</Dialog.Content>
|
||||
<div className={styles.row}>
|
||||
<Text>{strings.settings.developer_mode}</Text>
|
||||
<Switch
|
||||
checked={developerMode}
|
||||
onCheckedChange={(checked) => {
|
||||
App.mutate((draft) => {
|
||||
draft.developerMode = checked;
|
||||
});
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</Dialog.Body>
|
||||
</Dialog.Content>
|
||||
</Dialog.Overlay>
|
||||
</Dialog.Portal>
|
||||
</Dialog.Root>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user