Do not apply mail horizontal template in mobile view

This commit is contained in:
Hadi Nategh 2022-10-12 12:49:41 +02:00
parent 08f7463482
commit 47daa738d0

View File

@ -610,7 +610,7 @@ class mail_ui
case "expand":
case "fixed":
$etpl->setElementAttribute('mailSplitter', 'orientation', 'h');
$etpl->setElementAttribute('nm', 'template', 'mail.index.rows.horizental');
if (!Api\Header\UserAgent::mobile()) $etpl->setElementAttribute('nm', 'template', 'mail.index.rows.horizental');
break;
default:
$etpl->setElementAttribute('mailSplitter', 'orientation', 'v');