aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/misc
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-09 14:21:13 +0200
committerChocobozzz <me@florianbigard.com>2018-05-09 14:22:42 +0200
commitb17e8d89758173c83a5a96ffc20320dfdc9c5647 (patch)
treee225eb7f75de3a1564b0c18dfcdcd875c7c3d1ae /client/src/app/shared/misc
parent9419b01352883fd8cd57f95c59555cff6b9c7404 (diff)
downloadPeerTube-b17e8d89758173c83a5a96ffc20320dfdc9c5647.tar.gz
PeerTube-b17e8d89758173c83a5a96ffc20320dfdc9c5647.tar.zst
PeerTube-b17e8d89758173c83a5a96ffc20320dfdc9c5647.zip
Avoid ... for delete/edit buttons in admin panel
Diffstat (limited to 'client/src/app/shared/misc')
-rw-r--r--client/src/app/shared/misc/button.component.scss13
-rw-r--r--client/src/app/shared/misc/delete-button.component.html4
-rw-r--r--client/src/app/shared/misc/edit-button.component.html4
3 files changed, 17 insertions, 4 deletions
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 @@
28 } 28 }
29 } 29 }
30} 30}
31
32// In a table, try to minimize the space taken by this button
33@media screen and (max-width: 1400px) {
34 :host-context(td) {
35 .action-button {
36 padding: 0 13px;
37 }
38
39 .button-label {
40 display: none;
41 }
42 }
43}
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 @@
1<span class="action-button action-button-delete" > 1<span class="action-button action-button-delete" [title]="label">
2 <span class="icon icon-delete-grey"></span> 2 <span class="icon icon-delete-grey"></span>
3 {{ label }} 3 <span class="button-label">{{ label }}</span>
4</span> 4</span>
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 @@
1<a class="action-button action-button-edit" [routerLink]="routerLink"> 1<a class="action-button action-button-edit" [routerLink]="routerLink" title="Edit">
2 <span class="icon icon-edit"></span> 2 <span class="icon icon-edit"></span>
3 Edit 3 <span class="button-label">Edit</span>
4</a> 4</a>