]> code.citadel.org Git - citadel.git/commitdiff
Removed the excess vertical whitespace between headers and message body
authorArt Cancro <ajc@citadel.org>
Sun, 17 Jul 2022 22:17:27 +0000 (18:17 -0400)
committerArt Cancro <ajc@citadel.org>
Sun, 17 Jul 2022 22:17:27 +0000 (18:17 -0400)
webcit-ng/static/js/view_forum.js
webcit-ng/static/js/view_mail.js

index f9c4b2d184fa5ee80ec7c024194f72df2ee0d53c..18602b8ea5d53b96ed20dbb3a65f351991c2ed5b 100644 (file)
@@ -220,7 +220,7 @@ function forum_render_one(msg, existing_div) {
                        "<br><span class=\"ctdl-msgsubject\">" + msg.subj + "</span>";
                }
                outmsg +=
-                 "</div><br>"                                                  // end header
+                 "</div>"                                                      // end header
                + "<div class=\"ctdl-msg-body\" id=\"" + mdiv + "_body\">"      // begin body
                + msg.text
                + "</div>"                                                      // end body
index c104c429827217b848db5526b1fdb08b29dca454..64cebf9456adc3288959fe65183f012d53294228 100644 (file)
@@ -60,7 +60,7 @@ function mail_render_one(msg, target_div) {
                        "<br><span class=\"ctdl-msgsubject\">" + msg.subj + "</span>";
                }
                outmsg +=
-                 "</div><br>"                                                  // end header
+                 "</div>"                                                      // end header
                + "<div class=\"ctdl-msg-body\" id=\"" + div + "_body\">"       // begin body
                + msg.text
                + "</div>"                                                      // end body
@@ -122,7 +122,7 @@ function mail_render_row(msg) {
                + "<td>" + msg["subject"] + "</td>"
                + "<td>" + msg["author"] + " &lt;" + msg["addr"] + "&gt;</td>"
                + "<td>" + convertTimestamp(msg["time"]) + "</td>"
-               + "<td>" + msg["msgnum"] + "</td>"
+               + "<td class=\"w3-right-align\">" + msg["msgnum"] + "</td>"
                + "</tr>";
        return(row);
 }
@@ -192,7 +192,7 @@ function render_mailbox_display() {
                                + "<th>" + _("Subject") + "</th>"
                                + "<th>" + _("Sender") + "</th>"
                                + "<th>" + _("Date") + "</th>"
-                               + "<th>#</th>"
+                               + "<th class=\"w3-right-align\">#</th>"
                                + "</tr>";
 
                        for (var i=0; i<msgs.length; ++i) {