Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

display select, number inline in settings (#155)

Akshay Agrawal108a0f599866
diff --git a/frontend/src/components/app-config/user-config-form.tsx b/frontend/src/components/app-config/user-config-form.tsx
index 6398c1b293..c886f9490a 100644
--- a/frontend/src/components/app-config/user-config-form.tsx
+++ b/frontend/src/components/app-config/user-config-form.tsx
@@ -76,16 +76,18 @@ export const UserConfigForm: React.FC = () => {
</FormItem>
)}
/>
- <FormField
- control={form.control}
- name="save.autosave_delay"
- render={({ field }) => (
- <FormItem className="mt-2 mb-2">
- <FormLabel>Autosave delay (seconds)</FormLabel>
- <FormControl>
+ </div>
+ <FormField
+ control={form.control}
+ name="save.autosave_delay"
+ render={({ field }) => (
+ <FormItem className="mb-2">
+ <FormLabel>Autosave delay (seconds)</FormLabel>
+ <FormControl>
+ <span className="inline-flex mx-2">
<Input
type="number"
- className="m-0 w-40"
+ className="m-0 w-20 inline-flex"
disabled={
form.getValues("save.autosave") !== "after_delay"
}
@@ -96,12 +98,12 @@ export const UserConfigForm: React.FC = () => {
field.onChange(Number.parseInt(e.target.value) * 1000)
}
/>
- </FormControl>
- <FormMessage />
- </FormItem>
- )}
- />
- </div>
+ </span>
+ </FormControl>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
<FormField
control={form.control}
name="completion.activate_on_typing"
@@ -135,6 +137,7 @@ export const UserConfigForm: React.FC = () => {
<NativeSelect
onChange={(e) => field.onChange(e.target.value)}
value={field.value}
+ className="inline-flex mx-2"
>
{KEYMAP_PRESETS.map((option) => (
<option value={option} key={option}>