From 6cd88b8f4b3a3355bba52726633e0b145bec1af6 Mon Sep 17 00:00:00 2001 From: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Date: Mon, 24 Jun 2024 13:43:32 -0400 Subject: Auto resize search textbox when removing lines (#1126) * Disallow user resizing of search textbox * Allow search textbox to shrink when lines are removed --- ext/css/search.css | 2 +- ext/js/display/search-display-controller.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/css/search.css b/ext/css/search.css index fac8de60..6bb20d42 100644 --- a/ext/css/search.css +++ b/ext/css/search.css @@ -82,7 +82,7 @@ h1 { height: calc(var(--textarea-line-height) + var(--textarea-padding) * 2); min-height: calc(var(--textarea-line-height) + var(--textarea-padding) * 2); max-height: calc(var(--textarea-line-height) * 10 + var(--textarea-padding) * 2); - resize: vertical; + resize: none; font-size: var(--font-size); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; white-space: pre-wrap; diff --git a/ext/js/display/search-display-controller.js b/ext/js/display/search-display-controller.js index b0f0d8e8..b1e26750 100644 --- a/ext/js/display/search-display-controller.js +++ b/ext/js/display/search-display-controller.js @@ -236,7 +236,7 @@ export class SearchDisplayController { /** */ _onSearchInput() { - this._updateSearchHeight(false); + this._updateSearchHeight(true); } /** -- cgit v1.2.3