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

Do not open the sidebar automatically on small widths #1530

Closed
wants to merge 3 commits into from

Conversation

szaimen
Copy link
Contributor

@szaimen szaimen commented Jan 27, 2023

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

@szaimen szaimen added the 2. developing Work in progress label Jan 27, 2023
@szaimen szaimen added this to the Nextcloud 26 milestone Jan 27, 2023
@szaimen szaimen force-pushed the enh/noid/dont-open-sidebar-on-small-screens branch from 04e99c1 to 311029f Compare January 27, 2023 13:50
Signed-off-by: Simon L <szaimen@e.mail.de>
@szaimen szaimen force-pushed the enh/noid/dont-open-sidebar-on-small-screens branch from 311029f to b4876c1 Compare January 27, 2023 13:52
Signed-off-by: Simon L <szaimen@e.mail.de>
@@ -907,13 +913,15 @@ export default {

/**
* Show the sharing sidebar
*
* @param {boolean} openSidebar open the sidebar, defaults to true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default seems to be false?

// Open the sidebar sharing tab
// TODO: also hide figure, needs a proper method for it in server Sidebar

if (OCA?.Files?.Sidebar) {
if (OCA?.Files?.Sidebar && openSidebar) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means we will never be able to open the sidebar on small screens

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it was just a test but didnt work anyway. I will have a look together with @Pytal on the problem. Or if you have some suggestions, please note them down :)

Signed-off-by: Simon L <szaimen@e.mail.de>
@szaimen
Copy link
Contributor Author

szaimen commented Feb 2, 2023

Looks like this is only a server problem

@szaimen szaimen closed this Feb 2, 2023
@szaimen szaimen deleted the enh/noid/dont-open-sidebar-on-small-screens branch February 2, 2023 16:33
@szaimen
Copy link
Contributor Author

szaimen commented Feb 2, 2023

No, looks like it is actually required

@szaimen szaimen restored the enh/noid/dont-open-sidebar-on-small-screens branch February 2, 2023 17:37
@szaimen szaimen reopened this Feb 2, 2023
@szaimen
Copy link
Contributor Author

szaimen commented Feb 2, 2023

actually only a server problem

@szaimen szaimen closed this Feb 2, 2023
@szaimen szaimen deleted the enh/noid/dont-open-sidebar-on-small-screens branch February 2, 2023 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants