mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-26 19:56:23 +00:00
(html,css) Improve display of mail attachments
Added extension of file in a small frame
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
xmlns:label="OGo:label">
|
||||
<md-card>
|
||||
<md-card-content>
|
||||
<img var:src="mimeImageURL"/>
|
||||
<p class="md-caption">
|
||||
<p class="md-caption" var:title="filenameForDisplay">
|
||||
<span class="sg-label-outline"><var:string value="preferredPathExtension"/></span>
|
||||
<var:string value="filenameForDisplay"/>
|
||||
</p>
|
||||
</md-card-content>
|
||||
@@ -17,11 +17,11 @@
|
||||
</div>
|
||||
<md-button class="sg-icon-button" var:href="pathToAttachment" target="_blank">
|
||||
<md-tooltip md-direction="left"><var:string label:value="View Attachment"/></md-tooltip>
|
||||
<md-icon>open_in_browser</md-icon>
|
||||
<md-icon>open_in_new</md-icon>
|
||||
</md-button>
|
||||
<md-button class="sg-icon-button" var:href="pathForDownload">
|
||||
<md-tooltip md-direction="left"><var:string label:value="Save Attachment"/></md-tooltip>
|
||||
<md-icon>save</md-icon>
|
||||
<md-icon>file_download</md-icon>
|
||||
</md-button>
|
||||
</md-dialog-actions>
|
||||
|
||||
|
||||
@@ -180,13 +180,19 @@ md-sidenav {
|
||||
}
|
||||
|
||||
.mailer_mailcontent {
|
||||
@extend .sg-md-body-multi;
|
||||
md-card {
|
||||
md-card-content {
|
||||
padding: $baseline-grid;
|
||||
p {
|
||||
@extend .md-caption;
|
||||
line-height: $sg-line-height-2;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
.sg-label-outline {
|
||||
border-color: $colorGrey400;
|
||||
color: $colorGrey600;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user