Susimail: Put error messages at the top

This commit is contained in:
zzz
2023-12-23 07:49:23 -05:00
parent 0b88668b7a
commit 394a2b1635
3 changed files with 13 additions and 1 deletions

View File

@@ -2481,7 +2481,11 @@ public class WebMail extends HttpServlet
}
}
if (showRefresh || sessionObject.error.length() > 0 || sessionObject.info.length() > 0) {
out.println("<div class=\"notifications\">");
out.print("<div class=\"notifications\"");
// if errors, put at the top
if (sessionObject.error.length() > 0)
out.print(" id=\"errornotifications\"");
out.println(">");
if (sessionObject.error.length() > 0)
out.println("<p class=\"error\">" + quoteHTML(sessionObject.error).replace("\n", "<br>") + "</p>");
if (sessionObject.info.length() > 0 || showRefresh) {

View File

@@ -805,6 +805,10 @@ input[type="submit"], input[type="reset"], select, button { /* webkit/blink fix
/* login + misc mods */
#errornotifications {
position: static;
}
.notifications {
text-align: center;
padding: 0 0 20px;

View File

@@ -1329,6 +1329,10 @@ tr.bottombuttons:empty {
box-shadow: none !important;
}
#errornotifications {
position: static;
}
.notifications {
bottom: 0;
left: 0;