*Mail: Add new pane option for showing all columns in vertical 3-pane view

This commit is contained in:
hadi 2023-06-02 11:38:54 +02:00
parent ebd800082d
commit 86f31a74d0
2 changed files with 6 additions and 1 deletions

View File

@ -436,9 +436,10 @@ class mail_hooks
'name' => 'previewPane',
'values' => array(
'vertical' => lang('show vertical'),
'allColumns' => lang('show vertical with all columns'),
'fixed' => lang('show horizontal'),
'expand' => lang('show horizontal, hide if none selected'),
'hide' => lang('never show'),
'hide' => lang('never show')
),
'default' => 'vertical',
'reload' => true

View File

@ -622,6 +622,10 @@ class mail_ui
case "vertical":
$etpl->setElementAttribute('mailSplitter', 'orientation', 'v');
break;
case "allColumns":
$etpl->setElementAttribute('mailSplitter', 'orientation', 'v');
$etpl->setElementAttribute('nm', 'template', 'mail.index.rows.horizental');
break;
case "expand":
case "fixed":
$etpl->setElementAttribute('mailSplitter', 'orientation', 'h');