From 1a99e9bf1ac71ebd77e4a6e4e945ad8da8c72f3e Mon Sep 17 00:00:00 2001 From: Almenon Date: Thu, 5 Sep 2019 15:04:24 -0700 Subject: [PATCH] Hide scrollbars in the editor textarea (#3897) * Hide scrollbars There is no need for scrollbars in the textarea given the scrollbar at the edge of the browser and that `preact-textarea-autosize` used for the textarea already increases the height of the textarea when needed. Getting rid of scrollbars would solve #2939 and #3330 * add documentation --- app/assets/stylesheets/preact/article-form.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/preact/article-form.scss b/app/assets/stylesheets/preact/article-form.scss index 2167d5f12..a8b45f51d 100644 --- a/app/assets/stylesheets/preact/article-form.scss +++ b/app/assets/stylesheets/preact/article-form.scss @@ -362,7 +362,9 @@ resize: none; padding: 20px 6px; font-family: $monospace; - // overflow: initial; + // scrollbars not needed because the preact-textarea-autosize package + // automatically resizes the article form + overflow: hidden; background: white; background: var(--theme-container-background, white); color: $black;