From 1778eaa3801dc1470031bc3fae75eaeebd550392 Mon Sep 17 00:00:00 2001 From: Merlijn <32853531+ToxicMushroom@users.noreply.github.com> Date: Thu, 3 Oct 2024 06:50:38 +0200 Subject: [PATCH] [htmx] Make it harder to miss the save button on the cred update page (#3013) --- server/core/static/style.css | 12 ++++-- ...credential_update_add_passkey_partial.html | 5 ++- .../credential_update_add_totp_partial.html | 2 +- .../templates/credentials_update_partial.html | 39 +++++++++++-------- .../templates/credentials_update_primary.html | 6 +-- 5 files changed, 38 insertions(+), 26 deletions(-) diff --git a/server/core/static/style.css b/server/core/static/style.css index c2c71faf2..0b6666321 100644 --- a/server/core/static/style.css +++ b/server/core/static/style.css @@ -268,7 +268,11 @@ body { height: fit-content; } - - - - +#cred-update-commit-bar { + display: block; + position: fixed; + bottom: 5%; + left: 50%; + transform: translateX(-50%); + background: white; +} diff --git a/server/core/templates/credential_update_add_passkey_partial.html b/server/core/templates/credential_update_add_passkey_partial.html index 90aac6309..c887f28d7 100644 --- a/server/core/templates/credential_update_add_passkey_partial.html +++ b/server/core/templates/credential_update_add_passkey_partial.html @@ -6,6 +6,7 @@
diff --git a/server/core/templates/credential_update_add_totp_partial.html b/server/core/templates/credential_update_add_totp_partial.html index 4585c74a9..e107c2bdc 100644 --- a/server/core/templates/credential_update_add_totp_partial.html +++ b/server/core/templates/credential_update_add_totp_partial.html @@ -91,7 +91,7 @@ hx-select="#newTotpForm > *" hx-vals='{"ignoreBrokenApp": false}' hx-include="#newTotpForm" - >Submit + >Add (% endif %) diff --git a/server/core/templates/credentials_update_partial.html b/server/core/templates/credentials_update_partial.html index 81f8acfc8..741c824f7 100644 --- a/server/core/templates/credentials_update_partial.html +++ b/server/core/templates/credentials_update_partial.html @@ -2,7 +2,7 @@