From f82e4f88709b45ca13220bbf9f4000c4e19f00e7 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 29 Jun 2024 04:27:50 -0500 Subject: [PATCH] increase width of custom-css setting --- src/web/assets/style.css | 4 ++++ src/web/settings.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/web/assets/style.css b/src/web/assets/style.css index 05a32ee..8a846d0 100644 --- a/src/web/assets/style.css +++ b/src/web/assets/style.css @@ -145,6 +145,10 @@ h1 { } #custom-css { tab-size: 2; + width: calc(100% - 0.5rem); + height: 20rem; + border: 0; + outline: 1px solid var(--bg-4); } /* header */ diff --git a/src/web/settings.rs b/src/web/settings.rs index 6bd6bd9..1a4a466 100644 --- a/src/web/settings.rs +++ b/src/web/settings.rs @@ -39,7 +39,7 @@ pub async fn get( // custom css textarea details #custom-css-details { summary { "Custom CSS" } - textarea name="stylesheet-str" id="custom-css" rows="10" cols="50" { + textarea #custom-css name="stylesheet-str" { { (config.ui.stylesheet_str) } } }