Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix sidebar scrolling for small displays #3444

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

szaimen
Copy link
Contributor

@szaimen szaimen commented Nov 8, 2022

Fix nextcloud/server#34777

Before After
image image

Signed-off-by: Simon L szaimen@e.mail.de

Signed-off-by: Simon L <szaimen@e.mail.de>
@szaimen szaimen added bug Something isn't working 3. to review Waiting for reviews labels Nov 8, 2022
@szaimen szaimen added this to the 7.1.0 milestone Nov 8, 2022
@szaimen
Copy link
Contributor Author

szaimen commented Nov 8, 2022

/backport to stable7

@raimund-schluessler
Copy link
Contributor

I think this is there intentionally, to keep the header visible at all times. If apps don't work well with it, it can be overwritten by the app itself.

@szaimen
Copy link
Contributor Author

szaimen commented Nov 8, 2022

I think this is there intentionally, to keep the header visible at all times. If apps don't work well with it, it can be overwritten by the app itself.

I have not yet found one app that really works well with this. So I'd rather fix this in general.

But would be fine for me ot overwrite this in server. WDYT @nextcloud/server ?

@Pytal Pytal added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 8, 2022
@Pytal Pytal merged commit 777b8ad into master Nov 8, 2022
@Pytal Pytal deleted the enh/noid/fix-sidebar-scrolling branch November 8, 2022 18:03
@szaimen
Copy link
Contributor Author

szaimen commented Nov 8, 2022

/backport to stable7

@danxuliu
Copy link
Contributor

danxuliu commented Dec 1, 2022

Making the whole sidebar scrollable is problematic when the sidebar is very tall. For example, in the Comments section of Files if there are a lot of comments, or in Talk during calls, when the chat is shown in the sidebar; in the case of Talk it is specially bad, as the newest messages are at the bottom. Due to this you need to scroll all the way down to see the messages, and you need to scroll all the way up to change to another tab (and besides being uncomfortable to use it also breaks scrolling because the older messages are loaded when you scroll to the top).

But even ignoring Talk the (in my opinion) usability concerns regarding excesive scrolling apply too to Files, for example.

Therefore I would suggest a different fix. Instead of removing min-height: 0 it could be replaced by height: 100%. This way the tabs would get the height of the sidebar, so it would be scrollable if the header and the tab do not fit in the screen, but the general scrolling would end when the tab headers are at the top, at which point the internal scrolling of the tab contents would start. With this you will always be able to switch between tabs, and if you need to show the sidebar header again it would be just scrolling its own height rather than the full sidebar height.

With that fix Talk would still need some further work, because the "New message" area would be hidden and the user would need to scroll down until the tab is fully shown to see it. But even if we just end setting min-height: 0 for Talk for the time being at least it should fix the issues in Files (I have not checked other apps, though).

However... please take all that with a pinch of salt, because my CSS is quite rusty and maybe that introduces more issues than it fixes ;-)

@nickvergessen nickvergessen added the breaking PR that requires a new major version label Dec 1, 2022
@nickvergessen
Copy link
Contributor

As per above this is a breaking change?
So need to bump the major version?
Or can we somehow limit this or make it optional so it does not change the scrolling behaviour completely?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish breaking PR that requires a new major version bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Side menu is almost unusable on small resolution
6 participants