From dbbc86bf8a4103861a20f167bd811daa46c374c1 Mon Sep 17 00:00:00 2001 From: FluxCapacitor2 <31071265+FluxCapacitor2@users.noreply.github.com> Date: Wed, 7 Aug 2024 23:33:39 -0400 Subject: [PATCH] Style fixes on the search page when JavaScript is disabled --- app/server/static/style.css | 6 ++++++ app/server/templates/index.html.tmpl | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/server/static/style.css b/app/server/static/style.css index 8a1515d..1027129 100644 --- a/app/server/static/style.css +++ b/app/server/static/style.css @@ -9,6 +9,7 @@ button, input[type="submit"] { + height: 100%; padding-inline: 1rem; padding-block: 0.5rem; border: 1px solid lightgray; @@ -94,6 +95,11 @@ input[type="submit"] { background-color: rgba(255, 255, 255, 0.5); } +/* For users without JavaScript, make sure the loading indicator remains hidden */ +.htmx-indicator { + opacity: 0; +} + .inter-regular { font-family: "Inter", sans-serif; font-optical-sizing: auto; diff --git a/app/server/templates/index.html.tmpl b/app/server/templates/index.html.tmpl index 5d3b1b6..fab9dc2 100644 --- a/app/server/templates/index.html.tmpl +++ b/app/server/templates/index.html.tmpl @@ -50,7 +50,9 @@ type="checkbox" name="source" value="{{ $value.ID }}" - checked="{{ $value.Enabled }}" + {{ if $value.Enabled }} + checked + {{ end }} /> {{ $value.ID }}