diff options
author | Kuuuube <61125188+Kuuuube@users.noreply.github.com> | 2024-06-24 13:43:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-24 17:43:32 +0000 |
commit | 6cd88b8f4b3a3355bba52726633e0b145bec1af6 (patch) | |
tree | 1af2356e83d758ee4dadcac82860bb92be5d95aa /ext | |
parent | cfa33c8f5d77b2365abc3715c31d18f52135897b (diff) |
Auto resize search textbox when removing lines (#1126)
* Disallow user resizing of search textbox
* Allow search textbox to shrink when lines are removed
Diffstat (limited to 'ext')
-rw-r--r-- | ext/css/search.css | 2 | ||||
-rw-r--r-- | 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); } /** |