Fix attachments and addresses in mail display

This commit is contained in:
Hadi Nategh 2023-02-08 14:59:56 +01:00
parent 8aabdee6f7
commit c6e025d31b

View File

@ -75,32 +75,33 @@
<et2-lavatar src="@avatar" lname="@from[0]" shape="rounded"></et2-lavatar>
<et2-vbox class="previewWrapper">
<et2-hbox>
<et2-details class="details" title="details" toggleOnHover="true" hoist="true" toggleAlign="left">
<et2-select-email slot="summary" value="@from" readonly="true" multiple="true"/>
<et2-vbox class="addresses">
<et2-hbox disabled="!@from">
<et2-description value="From" class="firstColumnTitle"></et2-description>
<et2-select-email id="from" readonly="true" multiple="true"></et2-select-email>
<et2-date-time-today align="right" id="mail_displaydate" readonly="true"></et2-date-time-today>
</et2-hbox>
<et2-hbox disabled="!@sender">
<et2-description value="Sender" class="firstColumnTitle"></et2-description>
<et2-select-email id="sender" readonly="true" multiple="true"></et2-select-email>
<et2-select-email id="sender" readonly="true" rows="1" maxTagsVisible="1" multiple="true"></et2-select-email>
</et2-hbox>
<et2-hbox disabled="!@to">
<et2-description value="To" class="firstColumnTitle"></et2-description>
<et2-select-email id="to" readonly="true" multiple="true"></et2-select-email>
<et2-select-email id="to" readonly="true" rows="1" maxTagsVisible="1" multiple="true"></et2-select-email>
</et2-hbox>
<et2-hbox disabled="!@cc">
<et2-description value="Cc" class="firstColumnTitle"></et2-description>
<et2-select-email id="cc" readonly="true" multiple="true"></et2-select-email>
<et2-select-email id="cc" rows="1" maxTagsVisible="1" readonly="true" multiple="true"></et2-select-email>
</et2-hbox>
<et2-hbox disabled="!@bcc">
<et2-description value="Bcc" class="firstColumnTitle"></et2-description>
<et2-select-email id="bcc" readonly="true" multiple="true"></et2-select-email>
<et2-select-email id="bcc" rows="1" maxTagsVisible="1" readonly="true" multiple="true"></et2-select-email>
</et2-hbox>
</et2-details>
<et2-date-time-today align="right" id="mail_displaydate" readonly="true"></et2-date-time-today>
</et2-vbox>
</et2-hbox>
<et2-details toggleAlign="left" title="@attachmentsBlockTitle" toggleOnHover="true" class="attachments" hoist="true" disabled="!@mail_displayattachments">
</et2-vbox>
</et2-hbox>
<et2-details toggleAlign="left" overlaySummaryOnOpen="true" toggleOnHover="true" class="attachments" hoist="true" disabled="!@mail_displayattachments">
<et2-hbox slot="summary">
<grid class="previewAttachmentArea egwGridView_grid">
<columns>
@ -120,6 +121,7 @@
<et2-description id="mail_displayattachments[0][winmailFlag]"></et2-description>
<et2-description-expose class="et2_link useEllipsis" id="mail_displayattachments[0][filename]" mime="@mail_displayattachments[0][type]" href="@mail_displayattachments[0][mime_url]" noLang="1" mimeData="@mail_displayattachments[0][mime_data]"></et2-description-expose>
<et2-description align="right" id="mail_displayattachments[0][size]"></et2-description>
<et2-description align="right" value="@attachmentsBlockTitle" class="et2_bold"></et2-description>
</row>
</rows>
</grid>
@ -148,9 +150,6 @@
</rows>
</grid>
</et2-details>
</et2-vbox>
</et2-hbox>
<et2-box class="mailDisplayContainer">
<iframe frameborder="1" class="mail_displaybody" id="mailDisplayBodySrc" name="mailDisplayBodySrc" scrolling="auto" width="100%"/>
</et2-box>