From 5ab23eb3a70c613f81e030a4480a88e0e07818d3 Mon Sep 17 00:00:00 2001 From: biast12 Date: Mon, 10 Feb 2025 07:22:54 +0100 Subject: [PATCH] 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() {