forked from owncloud/music
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix narrow screen navigation pane layout on NC30
When the browser window is narrow and the navigation pane got collapsed, it was left peeking on the left border of the window on Nextcloud 30. This was related to the fact that NC30 shows the borders around the content also in the narrow screen "mobile" layout while NC25-29 removes the borders in this mode. Interestingly, NC31 removes the borders of mobile layout once again so NC30 is the only outlier. As an additional glitch, the bottom left corner of the content was shown without the normal rounding when the collapsed navigation pane was expanded. The major change made here is to use "contain: content" on the #app container. With this, we don't anymore need to manually handle the borders and rounded corners as those will be cropped automatically. This change required making changes to how the layout for navigation pane, controls pane, and the sidebar was defined. What made this somewhat difficult was that this rule cannot be used on old Nextcloud versions (14 to 24) because of how they use the window.document as the main scroll container, and we still support NC versions 20+. Hence, we needed to add some exceptios for these versions.
- Loading branch information
Showing
7 changed files
with
43 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters