Skip to content

Conversation

@szaimen
Copy link
Contributor

@szaimen szaimen commented Aug 17, 2021

Fix nextcloud/server#26518

Before After
image image

Signed-off-by: szaimen [email protected]

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
Copy link
Contributor

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

Copy link
Contributor Author

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?

Copy link
Contributor

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

Copy link
Contributor Author

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?

Copy link
Contributor Author

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?

Copy link
Contributor

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.

Copy link
Contributor Author

@szaimen szaimen Sep 20, 2021

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?

Copy link
Contributor

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:

  1. Make sure the quota error is only shown once
  2. The user should use the close button to navigate to the menu.

@jancborchardt
Copy link

Design-wise it looks good! But yeah, Julius’ feedback is valid :)

@skjnldsv
Copy link
Contributor

What is the status here?
We have 4.0.0 major on the line, in case this needs to get in as a breaking change :)

@szaimen
Copy link
Contributor Author

szaimen commented Oct 28, 2022

What is the status here? We have 4.0.0 major on the line, in case this needs to get in as a breaking change :)

It can be closed as this is not fixable here.

@szaimen szaimen closed this Oct 28, 2022
@szaimen szaimen deleted the szaimen-patch-1 branch October 28, 2022 09:18
@skjnldsv
Copy link
Contributor

Thanks for the update @szaimen :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'Your storage is almost full' blocks access to menuitems

6 participants