-
Notifications
You must be signed in to change notification settings - Fork 5
fix overlapping menu #423
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 overlapping menu #423
Conversation
Signed-off-by: szaimen <[email protected]>
| margin-top: 45px; | ||
| position: fixed; | ||
| z-index: 10100; | ||
| z-index: 2000; // Needs to be below Nextcloud menu entries see https://github.com/nextcloud/server/issues/26518 |
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.
This will cause a regression with modals as the 10100 value was introduced in #236 to fix that
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.
for which modals would this apply?
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.
Any modal from the vue library for example: viewer, firstrunwizard, settings dialogs
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.
So in this case do you see a way to fix this nextcloud/server#26518 at all?
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.
maybe can we move the toasts a bit to the left? so that it doesn't overlap anymore with the menu?
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.
So in this case do you see a way to fix this nextcloud/server#26518 at all?
Can't think of a proper way currently. The issue is that the modal should overlap all content (also the header menus) while the toast should still be overlapped by the menus.
maybe can we move the toasts a bit to the left? so that it doesn't overlap anymore with the menu?
Also not a solution as the menu has a dynamic width depending on the translations and the same issue also exists for the other popovers like search.
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.
@juliushaertl Is there maybe a way to have the z-index for the dialogs by default on 2000 and simply increase it to 10100 when the modal opens and reset it again when it gets closed?
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.
Is there maybe a way to have the z-index for the dialogs by default on 2000 and simply increase it to 10100 when the modal opens and reset it again when it gets closed?
Not sure how that would solve anything. Notifications e.g. is a popup just like in the screenshot, but the toasts triggered from it should overlap the popup. So the library can not solve this. In the case above we should:
- Make sure the quota error is only shown once
- The user should use the close button to navigate to the menu.
|
Design-wise it looks good! But yeah, Julius’ feedback is valid :) |
|
What is the status here? |
It can be closed as this is not fixable here. |
|
Thanks for the update @szaimen :) |
Fix nextcloud/server#26518
Signed-off-by: szaimen [email protected]