Avoid ... for delete/edit buttons in admin panel

pull/559/head
Chocobozzz 2018-05-09 14:21:13 +02:00
parent 9419b01352
commit b17e8d8975
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 17 additions and 4 deletions

View File

@ -28,3 +28,16 @@
} }
} }
} }
// In a table, try to minimize the space taken by this button
@media screen and (max-width: 1400px) {
:host-context(td) {
.action-button {
padding: 0 13px;
}
.button-label {
display: none;
}
}
}

View File

@ -1,4 +1,4 @@
<span class="action-button action-button-delete" > <span class="action-button action-button-delete" [title]="label">
<span class="icon icon-delete-grey"></span> <span class="icon icon-delete-grey"></span>
{{ label }} <span class="button-label">{{ label }}</span>
</span> </span>

View File

@ -1,4 +1,4 @@
<a class="action-button action-button-edit" [routerLink]="routerLink"> <a class="action-button action-button-edit" [routerLink]="routerLink" title="Edit">
<span class="icon icon-edit"></span> <span class="icon icon-edit"></span>
Edit <span class="button-label">Edit</span>
</a> </a>