This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit fdd61189f34f6d04d6f80fa2066b9bd2e158cdc6
Author: Daniel Gruno <[email protected]>
AuthorDate: Sun Nov 21 18:19:39 2021 +0100

    adjust for compact mode on narrow devices
---
 webui/js/source/listview-flat.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webui/js/source/listview-flat.js b/webui/js/source/listview-flat.js
index ad02e34..f060b2e 100644
--- a/webui/js/source/listview-flat.js
+++ b/webui/js/source/listview-flat.js
@@ -26,7 +26,7 @@ function calc_per_page() {
     let email_h = G_current_listmode_compact ? 24 : 40;
     if (width < 600) {
         console.log("Using narrow view, halving emails per page...");
-        email_h = 80;
+        email_h = G_current_listmode_compact ? 36 : 80;
     }
     height -= 180;
     let per_page = Math.max(5, Math.floor(height / email_h));

Reply via email to