From b18befd3396cc29e336f5bc9973160f44050b7e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20H=C3=A4rtl?= Date: Wed, 19 Jun 2019 09:35:52 +0200 Subject: [PATCH] Avoid scrolling to the hidden input when toggling grid/list view MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/files/css/files.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/files/css/files.scss b/apps/files/css/files.scss index 1ffe8af4324..589948d6a9f 100644 --- a/apps/files/css/files.scss +++ b/apps/files/css/files.scss @@ -1061,6 +1061,10 @@ table.dragshadow td.size { opacity: 1; } } +/* Make sure the hidden input is not rendered at all to avoid scrolling to top */ +#showgridview { + display: none; +} /* Adjustments for link share page */ #body-public { -- 2.39.5