Align settings page styling

This commit is contained in:
Abel Luck 2026-03-30 18:57:36 +02:00
parent b43f466e76
commit 2bd0651478
2 changed files with 14 additions and 13 deletions

View file

@ -40,7 +40,7 @@ def settings_page(
),
"data-on:submit": f"@post('{action_path}')",
},
class_="space-y-6 rounded-[1.5rem] bg-white p-6 shadow-sm ring-1 ring-slate-200",
class_="space-y-6",
)[
h.div[
h.p(
@ -60,16 +60,16 @@ def settings_page(
},
class_="rounded-2xl bg-rose-50 px-4 py-3 text-sm font-medium text-rose-800",
),
input_field(
label="Max concurrent jobs",
field_id="max-concurrent-jobs",
value=_value(settings, "max_concurrent_jobs", "1"),
help_text="Must be an integer greater than or equal to 1.",
signal_name="maxConcurrentJobs",
),
h.div(
class_="flex flex-wrap justify-end gap-3 border-t border-slate-200 pt-6"
)[
h.div(class_="rounded-[1.5rem] bg-stone-50 p-5")[
input_field(
label="Max concurrent jobs",
field_id="max-concurrent-jobs",
value=_value(settings, "max_concurrent_jobs", "1"),
help_text="Must be an integer greater than or equal to 1.",
signal_name="maxConcurrentJobs",
),
],
h.div(class_="flex flex-wrap justify-end gap-3 pt-2")[
muted_action_link(href="/", label="Back to dashboard"),
h.button(
type="submit",