chore(webui): redesign the settings page and fix a few display elements

This commit is contained in:
Julien Dessaux 2025-04-07 00:43:35 +02:00
parent 59b3d49a4f
commit f604bb98ab
Signed by: adyxax
GPG key ID: F92E51B86E07177E
6 changed files with 24 additions and 32 deletions

View file

@ -41,12 +41,10 @@ func handleSettingsPOST(db *database.DB) http.Handler {
errorResponse(w, r, http.StatusInternalServerError, err)
return
}
page := makePage(r, &Page{Title: "Settings", Section: "settings"})
page.LightMode = settings.LightMode
render(w, settingsTemplates, http.StatusOK, SettingsPage{
Page: &Page{
LightMode: settings.LightMode,
Title: "Settings",
Section: "settings",
},
Page: page,
Settings: &settings,
})
})