Restore default table cell behavior for actions and table-col-grow-cell

This commit is contained in:
Alice Gaudon 2021-04-22 20:04:48 +02:00
parent 53c5763909
commit 75650bf23f
2 changed files with 44 additions and 38 deletions

View File

@ -667,6 +667,7 @@ button, .button {
// --- Tables // --- Tables
// --- // ---
td.actions { td.actions {
> * {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: center;
@ -690,6 +691,7 @@ td.actions {
margin-left: 8px; margin-left: 8px;
} }
} }
}
.data-table { .data-table {
width: 100%; width: 100%;
@ -929,6 +931,7 @@ td.actions {
} }
.table-col-grow-cell { .table-col-grow-cell {
> * {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -944,6 +947,7 @@ td.actions {
text-overflow: ellipsis; text-overflow: ellipsis;
} }
} }
}
.pagination { .pagination {
ul { ul {

View File

@ -76,6 +76,7 @@
<td>{{ (file.size / (1024 * 1024)).toFixed(2) }}MB</td> <td>{{ (file.size / (1024 * 1024)).toFixed(2) }}MB</td>
<td>{% if file.expires_at %}{{ file.expires_at.toISOString() }}{% else %}Never{% endif %}</td> <td>{% if file.expires_at %}{{ file.expires_at.toISOString() }}{% else %}Never{% endif %}</td>
<td class="actions"> <td class="actions">
<div>
{% if file.shouldBeDeleted() %} {% if file.shouldBeDeleted() %}
Pending deletion Pending deletion
{% else %} {% else %}
@ -86,6 +87,7 @@
<button class="button danger" onclick="return confirm('Are you sure you want to delete file {{ file.real_name }}?');"><i data-feather="trash"></i> <span class="tip">Delete</span></button> <button class="button danger" onclick="return confirm('Are you sure you want to delete file {{ file.real_name }}?');"><i data-feather="trash"></i> <span class="tip">Delete</span></button>
</form> </form>
{% endif %} {% endif %}
</div>
</td> </td>
</tr> </tr>
{% else %} {% else %}