-
Notifications
You must be signed in to change notification settings - Fork 156
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
Permanently visible left sidebar #3442
Conversation
27b2b79
to
00e9a5e
Compare
💥 Acceptance tests webUIOCIS failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/9651/
|
Thinking if it makes sense to implement some acceptance tests. The component itself has unit tests in the ODS so not sure what we would want to test here. Maybe just the resizing but that doesn't seem big enough for acceptance tests. |
|
||
mounted() { | ||
this.$nextTick(() => { | ||
window.addEventListener('resize', this.onResize) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: we have a "resize-observer" plugin, but it's more designed for specific elements in the DOM, not the window. I guess you did not need it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I didn't see a reason to use it here since we are watching the whole window. Also, to try not to have an additional element in the DOM.
if the acceptance tests cover the "click to open" in responsive mode, I guess it's enough. |
regarding 1 I wonder if the sidebar shouldn't just look the same and have the menu items on the bottom of the logo. if there is enough space, it doesn't need to occupy the whole screen and could take up part of it, maybe 90% or so ? not sure how mobile sidebars usually look in that case |
ah, just noticed that on my mobile phone the menu items are indeed below the logo, so it's just in some bigger resolution that they move to the right. not sure if intended |
💥 Acceptance tests webUIOCIS failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/9657/
|
80f432d
to
be8331b
Compare
I agree. I added just a check in the tests if the sidebar is visible to know if the menu button should be clicked or not. |
be8331b
to
5a2dd2b
Compare
After bringing back |
To address comments:
|
💥 Acceptance tests webUIOCIS failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/9663/
|
💥 Acceptance tests webUIOCIS failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/9665/
|
💥 Acceptance tests webUIOCIS failed. Please find the screenshots inside ...https://drone.owncloud.com/owncloud/phoenix/9667/
|
b5c440d
to
6941df1
Compare
@PVince81 ODS updated, swipe and transition added and responsive layout fixed. Pls re-review. 🙂 Had to update the ODS here because the new sidebar would break tests otherwise. |
6941df1
to
98e23f5
Compare
98e23f5
to
584969d
Compare
@kulmann Nice catch! 👍 For now I have adjusted the width directly in the component since the bottom actions off-canvas won't probably be there for long anyway. |
584969d
to
e0ac978
Compare
e0ac978
to
6dd48eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A big step forward, looks nice 👍
Note: the swipe gesture doesn't seem to work on my Android phone, let's investigate separately
Description
Made left sidebar permanently visible and move branding into it. Requires owncloud/owncloud-design-system#735
Related Issue
Screenshots (if appropriate):
Types of changes
Open tasks: