From 6ee5f2edd5a668cac7599fd4da0a975caeabcde8 Mon Sep 17 00:00:00 2001 From: biast12 Date: Mon, 10 Feb 2025 06:39:54 +0100 Subject: [PATCH 1/2] Disable horizontal resizing for textareas --- frontend/public/global.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/public/global.css b/frontend/public/global.css index a92f033..1003b25 100644 --- a/frontend/public/global.css +++ b/frontend/public/global.css @@ -37,6 +37,10 @@ label { display: block; } +textarea { + resize: vertical; +} + input, button, select, textarea { font-family: inherit; font-size: inherit; From 5ab23eb3a70c613f81e030a4480a88e0e07818d3 Mon Sep 17 00:00:00 2001 From: biast12 Date: Mon, 10 Feb 2025 07:22:54 +0100 Subject: [PATCH 2/2] Fix vertical styling too --- frontend/public/global.css | 1 + frontend/src/components/Collapsible.svelte | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/public/global.css b/frontend/public/global.css index 1003b25..266c737 100644 --- a/frontend/public/global.css +++ b/frontend/public/global.css @@ -39,6 +39,7 @@ label { textarea { resize: vertical; + max-height: 500px; } input, button, select, textarea { diff --git a/frontend/src/components/Collapsible.svelte b/frontend/src/components/Collapsible.svelte index 94ecc5d..70a5593 100644 --- a/frontend/src/components/Collapsible.svelte +++ b/frontend/src/components/Collapsible.svelte @@ -79,7 +79,7 @@ } function updateSize() { - content.style.maxHeight = `${content.scrollHeight}px`; + content.style.maxHeight = `100%`; } function updateIfExpanded() {