Conversation
core/css/header.scss
Outdated
| /* Use by the apps menu and the settings right menu */ | ||
| #apps > ul, | ||
| &.settings-menu > ul { | ||
| max-height: calc(100vh - #{$header-height}); |
There was a problem hiding this comment.
This is an issue on Apple devices as the nav bar is counted in the 100vh. That's why we stopped using it :/
There was a problem hiding this comment.
So this needs to be fixed? What’s the proper way to do it?
There was a problem hiding this comment.
Use percent. so it depends on the size of the window height. but it's not going to work here as the % would be relative to the header 🤔
There was a problem hiding this comment.
| max-height: calc(100vh - #{$header-height}); | |
| max-height: calc(100% - #{$header-height}); |
There was a problem hiding this comment.
No as the 100% are calculated from the parent element (which is the popover trigger button at 50px height)
There was a problem hiding this comment.
There was a problem hiding this comment.
You won't see the issue with vh on emulator or android devices.
iOS devices does not take the bottom navigation bar of the browser out of the 100vh. Meaning 100vh always include the navigation bar and therefor always scrolls because it's bigger.
nickvergessen
left a comment
There was a problem hiding this comment.
This still needs more changes, the right header menu (with the link to settings and the user list) is still having the problem.
And the normal app menu has 2 scroll bars now...
|
@juliushaertl What is the status here? We are close to the beta 1. Should this go into 17 or 18? |
|
Btw this is still a problem with the external sites app: nextcloud/external#140 Would be nice if we can fix this (maybe for 17.0.1) and backport it to 17 and 16? |
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
cea93eb to
bef426e
Compare
|
I fixed the duplicate scroll bar by using the existing scroll container. Ready to review from my side. |
nickvergessen
left a comment
There was a problem hiding this comment.
Fixes the issue with the external sites app now

Header menus that are bigger than the screen height will now be scrollable:

Fixes nextcloud/external#140
The height is limited here
server/core/css/header.scss
Line 91 in da7bed1