Fix table formatting

This commit is contained in:
2025-03-07 14:13:25 -05:00
parent 0d386e2d9f
commit e9375ee384
4 changed files with 42 additions and 19 deletions

View File

@@ -75,7 +75,7 @@ func EditorHandler(w http.ResponseWriter, r *http.Request) {
AppLayout(title, *identity, session,
Modal(
"password_generator",
Text("Passkey Generator"),
nil,
HxLoad("/app/generator-hx"),
[]Node {
ButtonUIOutline(ModalCloser(), Text("Close")),
@@ -121,13 +121,16 @@ func EditorHandler(w http.ResponseWriter, r *http.Request) {
FormInput(Class("password"), Type("password"), Name("pas"), Value(secret.Password)),
Br(),
FormLabel(Text("Show password?"), For("show")),
FormCheck(Class("checkbox"), ID("show")),
ButtonUIOutline(Class("passtoggle"),
Type("button"),
Flex(Icon(ICON_EYE, 24), Text(" Toggle password visibility")),
),
InlineScript(`
let check = me(".checkbox", me());
let toggle = me(".passtoggle", me());
let passInput = me(".password", me());
check.on("click", () => {
toggle.on("click", () => {
if (passInput.type === "password") {
passInput.type = "text";
} else if (passInput.type === "text") {