modoboa / modoboa-webmail

The webmail of Modoboa
MIT License
76 stars 47 forks source link

Webmail (mobile view): Buttons are laying about each other #155

Open tonioo opened 6 years ago

tonioo commented 6 years ago

From @Gravity-87 on March 6, 2018 12:16

FIRST OF ALL: Dear Modoboa-Specialists: Thx for this great project!! I installed Modoboa last weekend with the installer and now have a fully functional e-mail-server. It's a really big thing! :-)


My issue...

Impacted versions

Steps to reproduce

In the mobile view of the webmail interface on my smartphone (5,5"), there is the following problem:

Current behavior

As described

Expected behavior

It would be nice to have a really usable "New mail" button (green) in mobile view of the webmail interface.

Video/Screenshot link (optional)

screenshot_20180306-130515

Copied from original issue: modoboa/modoboa#1427

seoni-at commented 4 years ago

I used the following css to get the button working but the folder menu gets set to 0px by the javascript resize function

#leftcol {
  /* Bring the button to front and make background solid color */
  z-index: 101;
  background-color: #fff;
}
@media (max-width: 767px){ 
  /* Hides the popup as it is not displaying correct on mobile and is unusable*/
  #left-toolbar {
    display: none!important;
  }
}
ciphermenial commented 3 years ago

Another issue I have found is the data box for composing an email doesn't expand.

shagho commented 5 months ago

I used the following css to get the button working but the folder menu gets set to 0px by the javascript resize function

#leftcol {
  /* Bring the button to front and make background solid color */
  z-index: 101;
  background-color: #fff;
}
@media (max-width: 767px){ 
  /* Hides the popup as it is not displaying correct on mobile and is unusable*/
  #left-toolbar {
    display: none!important;
  }
}

for webmail.js replace

$("#folders").height(
                        $("#left-toolbar").offset().top - $("#folders").offset().top
  );

with below code:

const isMobile = window.matchMedia('(max-width: 768px)');

 if (isMobile.matches) {
       $("#folders").height(200); // Adjust height as needed
 } else {
       $("#folders").height(
                $("#left-toolbar").offset().top - $("#folders").offset().top
        );
}