From: Chocobozzz Date: Wed, 9 May 2018 12:21:13 +0000 (+0200) Subject: Avoid ... for delete/edit buttons in admin panel X-Git-Tag: v1.0.0-beta.5~55 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b17e8d89758173c83a5a96ffc20320dfdc9c5647;p=oweals%2Fpeertube.git Avoid ... for delete/edit buttons in admin panel --- diff --git a/client/src/app/shared/misc/button.component.scss b/client/src/app/shared/misc/button.component.scss index 145a3474a..343aea207 100644 --- a/client/src/app/shared/misc/button.component.scss +++ b/client/src/app/shared/misc/button.component.scss @@ -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; + } + } +} diff --git a/client/src/app/shared/misc/delete-button.component.html b/client/src/app/shared/misc/delete-button.component.html index d49de294a..7387d0a88 100644 --- a/client/src/app/shared/misc/delete-button.component.html +++ b/client/src/app/shared/misc/delete-button.component.html @@ -1,4 +1,4 @@ - + - {{ label }} + {{ label }} diff --git a/client/src/app/shared/misc/edit-button.component.html b/client/src/app/shared/misc/edit-button.component.html index 58012a8b8..632d6bba2 100644 --- a/client/src/app/shared/misc/edit-button.component.html +++ b/client/src/app/shared/misc/edit-button.component.html @@ -1,4 +1,4 @@ - + - Edit + Edit