mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 10:59:51 +08:00
prevent long email addresses from breaking admin table layout
This commit is contained in:
parent
0cda5b9d55
commit
eb619c8e98
|
@ -19,9 +19,9 @@
|
|||
</tr>
|
||||
|
||||
{{#each model as |l|}}
|
||||
<tr>
|
||||
<td>{{format-date l.created_at}}</td>
|
||||
<td>
|
||||
<tr class="sent-email-item">
|
||||
<td class="sent-email-date">{{format-date l.created_at}}</td>
|
||||
<td class="sent-email-username">
|
||||
{{#if l.user}}
|
||||
{{#link-to "adminUser" l.user}}{{avatar l.user imageSize="tiny"}}{{/link-to}}
|
||||
{{#link-to "adminUser" l.user}}{{l.user.username}}{{/link-to}}
|
||||
|
@ -29,12 +29,12 @@
|
|||
—
|
||||
{{/if}}
|
||||
</td>
|
||||
<td>
|
||||
<td class="sent-email-address">
|
||||
{{#if l.bounced}}{{d-icon "redo" title="admin.email.bounced"}}{{/if}}
|
||||
<a href="mailto:{{l.to_address}}">{{l.to_address}}</a>
|
||||
</td>
|
||||
<td>{{l.email_type}}</td>
|
||||
<td class="post-link">
|
||||
<td class="sent-email-type">{{l.email_type}}</td>
|
||||
<td class="sent-email-post-link">
|
||||
{{#if l.post_url}}
|
||||
<a href={{l.post_url}}>{{l.post_description}}</a>
|
||||
<span class="reply-key">{{l.reply_key}}</span>
|
||||
|
|
|
@ -22,6 +22,12 @@
|
|||
max-width: 200px;
|
||||
@include ellipsis;
|
||||
}
|
||||
.sent-email-address a {
|
||||
// prevent long email addresses from breaking the layout
|
||||
display: inline-block;
|
||||
max-width: 300px;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
}
|
||||
|
||||
.incoming-emails {
|
||||
|
|
Loading…
Reference in New Issue
Block a user