From 77b475b5e60251efb2df1ae41f71ca8aae76771f Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 27 Jul 2022 15:49:55 +0200 Subject: [PATCH] Set mail column selection base on PreviewPane mode --- mail/inc/class.mail_ui.inc.php | 1 + mail/templates/default/app.css | 3 --- mail/templates/pixelegg/app.css | 3 --- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index 790090bd84..125c69867f 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -472,6 +472,7 @@ class mail_ui 'start' => 0, // IO position in list 'order' => 'date', // IO name of the column to sort after (optional for the sortheaders) 'sort' => 'DESC', // IO direction of the sort: 'ASC' or 'DESC' + 'no_columnselection' => $this->mail_bo->mailPreferences['previewPane'] == 'vertical'? true : false ); } if (Api\Header\UserAgent::mobile()) $content[self::$nm_index]['header_row'] = 'mail.index.header_right'; diff --git a/mail/templates/default/app.css b/mail/templates/default/app.css index 7a31a4e702..9cacfcf15e 100644 --- a/mail/templates/default/app.css +++ b/mail/templates/default/app.css @@ -1025,9 +1025,6 @@ div#mail-index_nm.splitter-pane {min-height: 100px;} margin-top: 1em; } -#mail-index_nm thead tr th.optcol { - display: none; -} #mail-index_nm .mail.row et2-url-email_ro {width: fit-content} #mail-index_nm .et2_label.et2_vfs {text-align: center} diff --git a/mail/templates/pixelegg/app.css b/mail/templates/pixelegg/app.css index b508a39eae..a71c61f2c2 100755 --- a/mail/templates/pixelegg/app.css +++ b/mail/templates/pixelegg/app.css @@ -988,9 +988,6 @@ div#mail-index_nm.splitter-pane { border-top: 1px solid silver; margin-top: 1em; } -#mail-index_nm thead tr th.optcol { - display: none; -} #mail-index_nm .mail.row et2-url-email_ro { width: fit-content; }