luci-theme-openwrt: fix scrolling issue in syslog
authormpratt14 <mpratt51@gmail.com>
Sat, 21 Sep 2019 22:38:30 +0000 (18:38 -0400)
committerJo-Philipp Wich <jo@mein.io>
Tue, 24 Sep 2019 06:15:08 +0000 (08:15 +0200)
Depending on the browser, it is sometimes difficult to scroll if moused
over or after clicking or highlighting text. I often have to click outside
the text to be able to scroll again. The browser perceives that there is
scrolling space/content within the <textarea> element because it is
almost, but not exactly, the same size as its parent <div> element,
when in reality, there is no more text content. This causes scrolling
within the element with a range of just a few pixels, and the rest of
the page remains static.

This is easily solved by adding the "overflow-y" property with value
"hidden". Tested by myself on Chrome 64-bit Windows 10

Signed-off-by: Michael Pratt <mpratt51@gmail.com>
[rewrap commit message, fix Sob syntax]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css

index cbe0e115052835697fcfb28ec6ea872046769273..4bdf055de5d6f237bbc7d3be2c4735f059d29d89 100644 (file)
@@ -430,6 +430,7 @@ textarea#syslog {
        border: 3px solid #cccccc;
        padding: 5px;
        font-family: monospace;
+       overflow-y: hidden;
 }
 
 #maincontainer {