diff options
Diffstat (limited to 'internal/web/handlers_sections.go')
| -rw-r--r-- | internal/web/handlers_sections.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/web/handlers_sections.go b/internal/web/handlers_sections.go index 8d6c9c9..04ba764 100644 --- a/internal/web/handlers_sections.go +++ b/internal/web/handlers_sections.go @@ -53,7 +53,7 @@ func (s *Server) handleSectionForm(w http.ResponseWriter, r *http.Request) { // normalizeSection clamps the enum fields so templates and CSS class names can trust them. func normalizeSection(sec *store.Section) { sec.Placement = pick(sec.Column(), "main", "left", "right") + "-" + pick(sec.Position(), "top", "bottom") - sec.Style = pick(sec.Style, "note", "plain", "warning") + sec.Style = pick(sec.Style, "note", "plain", "warning", "gizmo") } func (s *Server) handleSectionSave(w http.ResponseWriter, r *http.Request) { |
