From 4cfce43e5d7ff8bd56acb71c7573194d531b2e2a Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 4 Sep 2024 13:46:54 +0300 Subject: [PATCH] Set min-height for contenteditable --- public/scripts/instruct-mode.js | 4 ---- public/style.css | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/public/scripts/instruct-mode.js b/public/scripts/instruct-mode.js index c62a1bf34..a1bac800c 100644 --- a/public/scripts/instruct-mode.js +++ b/public/scripts/instruct-mode.js @@ -611,15 +611,11 @@ jQuery(() => { if (state) { $('#instruct_system_sequence_block').addClass('disabled'); $('#instruct_system_suffix_block').addClass('disabled'); - $('#instruct_system_sequence').css('height', 'auto'); - $('#instruct_system_suffix').css('height', 'auto'); $('#instruct_system_sequence').prop('contenteditable', false); $('#instruct_system_suffix').prop('contenteditable', false); } else { $('#instruct_system_sequence_block').removeClass('disabled'); $('#instruct_system_suffix_block').removeClass('disabled'); - $('#instruct_system_sequence').css('height', ''); - $('#instruct_system_suffix').css('height', ''); $('#instruct_system_sequence').prop('contenteditable', true); $('#instruct_system_suffix').prop('contenteditable', true); } diff --git a/public/style.css b/public/style.css index 1ad069775..ca2ef3897 100644 --- a/public/style.css +++ b/public/style.css @@ -5460,4 +5460,5 @@ body:not(.movingUI) .drawer-content.maximized { max-height: 50dvh; resize: vertical; overflow: auto; + min-height: 1.8em; }