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

[Nextcloud] Compose window title bar is behind Nextcloud menu : cannot click on Send button #673

Closed
Mer0me opened this issue Nov 15, 2022 · 5 comments

Comments

@Mer0me
Copy link

Mer0me commented Nov 15, 2022

Describe the bug
When I compose a new email in SnappyMail within Nextcloud, the compose window shows up but the title bar of this window is "behind" the Nextcloud menu so I can't click the buttons or close the compose windows.

To Reproduce
Steps to reproduce the behavior:

  1. On Nextcloud / SnappyMail, click on new button
  2. Try to click "send"

Expected behavior
Compose window should be in front of the Nextcloud interface

Screenshots
image

Please complete the following information:

  • Browser: Firefox 91.8.0 ESR
  • IMAP daemon: dovecot
  • PHP version: 7.4
  • SnappyMail Version: 2.21.1

Debug/logging information
not relevant

Additional context
Resolution of the screen : 1920x1080

@the-djmaze
Copy link
Owner

the-djmaze commented Nov 15, 2022

SnappyMail uses HTMLDialogElement.
This <dialog> is supported by Firefox 98+ and Safari 15.1+.
For older versions it uses polyfill code to simulate the behavior.
https://caniuse.com/dialog

The z-index of the dialogs start at 3000, and the Nextcloud 25 menu has z-index 2000.
In theory this should be sufficient, but somehow not with yours.

You can either:

  1. upgrade Firefox to 102 ESR
  2. inspect the element and tell us which z-index value solves your issue.

@Mer0me
Copy link
Author

Mer0me commented Nov 15, 2022

Z-index = 3001 => body of compose window is behind Nextcloud UI
image

Z-index = 3002 => body of compose window in front of Nextcloud UI but behind Nextcloud menu
image

Z-index= 3000000000000000000000000000000 => Nothing change
image

Unable to upgrade firefox here (office) but I'm sure it would solve the problem.

I confirm that the header (Nextcloud menu) has a z-index=2000

#body-user #header, #body-settings #header, #body-public #header {
    display: inline-flex;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 2000;
    height: 50px;
    box-sizing: border-box;
    justify-content: space-between;

@the-djmaze
Copy link
Owner

Then you can do 2 additional tests:

#body-user #header, #body-settings #header, #body-public #header {
    position: fixed;
#content {
    z-index: 2001;

@the-djmaze
Copy link
Owner

the-djmaze commented Nov 15, 2022

Else the margin-top of the dialogs must become

dialog {
    margin-top: 50px

@Mer0me
Copy link
Author

Mer0me commented Nov 15, 2022

Else the margin-top of the dialogs must become

dialog {
    margin-top: 50px

This one works. Not your first proposition.

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

No branches or pull requests

2 participants