Skip to content

Commit

Permalink
Always put the gridview toggle on the visible part of the page
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Aug 14, 2019
1 parent d013ff6 commit cbc3862
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions apps/files/css/files.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1080,9 +1080,15 @@ table.dragshadow td.size {
opacity: 1;
}
}
/* Make sure the hidden input is not rendered at all to avoid scrolling to top */

/**
* Make sure the hidden input is always
* on the visible scrolled area of the
* page to avoid scrolling to top when focusing
*/
#showgridview {
display: none;
position: fixed;
top: 0;
}

/* Adjustments for link share page */
Expand Down

0 comments on commit cbc3862

Please sign in to comment.