UX: Cap staff action detail height

This commit is contained in:
Kris 2020-02-14 14:23:31 -05:00
parent 103af2dcce
commit f81bebf93f
2 changed files with 13 additions and 7 deletions

View File

@ -87,13 +87,15 @@
</td>
<td class="col value created-at">{{age-with-tooltip item.created_at}}</td>
<td class="col value details">
{{{item.formattedDetails}}}
{{#if item.useCustomModalForDetails}}
<a href {{action "showCustomDetailsModal" item}}>{{d-icon "info-circle"}} {{i18n 'admin.logs.staff_actions.show'}}</a>
{{/if}}
{{#if item.useModalForDetails}}
<a href {{action "showDetailsModal" item}}>{{d-icon "info-circle"}} {{i18n 'admin.logs.staff_actions.show'}}</a>
{{/if}}
<div>
{{{item.formattedDetails}}}
{{#if item.useCustomModalForDetails}}
<a href {{action "showCustomDetailsModal" item}}>{{d-icon "info-circle"}} {{i18n 'admin.logs.staff_actions.show'}}</a>
{{/if}}
{{#if item.useModalForDetails}}
<a href {{action "showDetailsModal" item}}>{{d-icon "info-circle"}} {{i18n 'admin.logs.staff_actions.show'}}</a>
{{/if}}
</div>
</td>
<td class="col value context">{{item.context}}</td>
</tr>

View File

@ -133,6 +133,10 @@
td.subject,
td.details {
max-width: 20vw;
> div {
max-height: 100px;
overflow-y: auto;
}
}
}