From 39ecb1e4c4a8503632c2e9f8bbfc7ecf5043b10c Mon Sep 17 00:00:00 2001 From: Silversthorn Date: Sun, 28 Jul 2024 18:41:23 +0200 Subject: [PATCH] Fixing Radio buttons --- app/frontend/static/assets/css/crafty.css | 5 ++ app/frontend/templates/panel/config_json.html | 61 +++++++++---------- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/app/frontend/static/assets/css/crafty.css b/app/frontend/static/assets/css/crafty.css index a8e5d9d5..53c3c1bf 100644 --- a/app/frontend/static/assets/css/crafty.css +++ b/app/frontend/static/assets/css/crafty.css @@ -253,6 +253,7 @@ div>.input-group>.form-control { /* IE and Edge */ scrollbar-width: none; /* Firefox */ + overflow: scroll; } .no-scroll::-webkit-scrollbar { @@ -279,6 +280,10 @@ div>.input-group>.form-control { top: calc(-0.125rem + 1px); } +.custom-radio .custom-control-label::after { + top: calc(-0.175rem); +} + a.btn-primary { color: var(--white); } diff --git a/app/frontend/templates/panel/config_json.html b/app/frontend/templates/panel/config_json.html index 47be0f46..465654b6 100644 --- a/app/frontend/templates/panel/config_json.html +++ b/app/frontend/templates/panel/config_json.html @@ -49,17 +49,16 @@ -
- + {% for item in data['config-json'].items() %} {% if item[0] == "reset_secrets_on_next_boot" %}
{% else %}
{% end %} -
+ {% if item[0] == 'language' %} {% elif isinstance(item[1], bool) %} -
- {% if item[1] == True %} - -  
- -   - {% else %} - -  
- -   - {% end %} + + {% if item[1] == True %} +
+ +
+
+ + +
+ {% else %} +
+ + +
+
+ + +
+ {% end %} + {% elif isinstance(item[1], int) %} {% else %} @@ -129,23 +140,7 @@
- - - - {% end %}