Rearrange attachments container in mail preview

This commit is contained in:
Hadi Nategh 2023-02-09 11:27:27 +01:00
parent 5a2bbd6463
commit 584bdcb5c2
2 changed files with 51 additions and 54 deletions

View File

@ -498,10 +498,6 @@ div.mail-compose_fileselector {
margin-bottom: 0.5em; margin-bottom: 0.5em;
font-size: 1.2em; font-size: 1.2em;
} }
et2-details.details::part(summary),
et2-details.attachments::part(summary){
padding-left: 1em;
}
et2-details.details {width: 100%} et2-details.details {width: 100%}
.mailDisplay et2-details::part(base), .mailDisplay et2-details::part(base),
@ -1069,9 +1065,9 @@ div#mail-index_nm.splitter-pane {min-height: 100px;}
#mail-index_nm tbody tr et2-lavatar {max-width: 3.7em; min-width:3.7em !important;} #mail-index_nm tbody tr et2-lavatar {max-width: 3.7em; min-width:3.7em !important;}
.previewWrapper .firstColumnTitle { .previewWrapper .firstColumnTitle {
max-width: 4em; max-width: 6em;
text-align: end; text-align: end;
min-width: 4em; min-width: 6em;
color: darkgrey; color: darkgrey;
} }
.mailPreviewHeaders et2-select-email::part(control) { .mailPreviewHeaders et2-select-email::part(control) {

View File

@ -51,11 +51,9 @@
rows="1" maxTagsVisible="1" rows="1" maxTagsVisible="1"
onTagClick="app.mail.onclickCompose"></et2-select-email> onTagClick="app.mail.onclickCompose"></et2-select-email>
</et2-hbox> </et2-hbox>
</et2-vbox> <et2-hbox width="100%" disabled="!@attachmentsBlock">
<et2-description value="Attachments" class="firstColumnTitle"></et2-description>
</et2-vbox> <et2-details overlaySummaryOnOpen="true" toggleAlign="right" toggleOnHover="true" hoist="true" class="attachments" >
</et2-hbox>
<et2-details overlaySummaryOnOpen="true" toggleAlign="left" toggleOnHover="true" hoist="true" class="attachments" disabled="!@attachmentsBlock">
<et2-hbox slot="summary"> <et2-hbox slot="summary">
<grid class="previewAttachmentArea egwGridView_grid" > <grid class="previewAttachmentArea egwGridView_grid" >
<columns> <columns>
@ -78,7 +76,6 @@
</rows> </rows>
</grid> </grid>
</et2-hbox> </et2-hbox>
<grid id="attachmentsBlock" class="previewAttachmentArea egwGridView_grid"> <grid id="attachmentsBlock" class="previewAttachmentArea egwGridView_grid">
<columns> <columns>
<column disabled="!@showtempname"/> <column disabled="!@showtempname"/>
@ -102,6 +99,10 @@
</rows> </rows>
</grid> </grid>
</et2-details> </et2-details>
</et2-hbox>
</et2-vbox>
</et2-vbox>
</et2-hbox>
</et2-vbox> </et2-vbox>
</row> </row>
</rows> </rows>