fix(mail(css)): limit some text formatting to attachment cards

pull/294/head
Francis Lachapelle 2021-02-08 12:02:34 -05:00
parent 9fe2de753b
commit e774c4c474
1 changed files with 21 additions and 22 deletions

View File

@ -181,6 +181,25 @@ md-sidenav {
}
}
// Limit height of attachments card, format content-type labels
.msg-attachment-link,
.msg-attachment-image {
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;
}
}
}
}
// The drop zone zone is only visibile when the user is dragging a file to the browser window
.sg-dropzone {
display: none;
@ -223,9 +242,11 @@ md-sidenav {
}
}
// Text or html message body
.msg-attachment-other {
flex: 0 0 100%;
max-width: 100%;
word-break: break-word;
}
.sg-attachment-name {
@ -247,28 +268,6 @@ md-sidenav {
font-weight: $sg-font-regular;
}
// Limit height of attachments card, format content-type labels
.mailer_mailcontent {
.sg-mail-part {
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;
}
}
}
}
}
}
.mailer_plaincontent {
white-space: pre-wrap;
}