Files
bookhoard/templates/utils.go
T
john-okeefe 4b43116f13 refactor(templates): apply activeClass helper and full-width layout
- Replace inline ternary operators with activeClass helper function
- Change layout containers from max-w-7xl to w-full for full-width design
- Update file path references in error messages for better debugging
2026-02-24 13:41:19 -05:00

10 lines
215 B
Go

package templates
func activeClass(current, target string) string {
base := "block px-4 py-2 rounded-lg "
if current == target {
return base + "bg-accent text-bg-primary"
}
return base + "hover:opacity-80"
}