diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-16 15:52:52 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-11-16 15:55:18 +0100 |
commit | 805bec52cd12a963832c6dd95e775f54509903f8 (patch) | |
tree | c3493c4807dbea364d6ac8f756df8492dbf2905c /client/src/app/menu | |
parent | c195975c546ecfb0e6228c43a9c855b8c3e09d63 (diff) | |
download | PeerTube-805bec52cd12a963832c6dd95e775f54509903f8.tar.gz PeerTube-805bec52cd12a963832c6dd95e775f54509903f8.tar.zst PeerTube-805bec52cd12a963832c6dd95e775f54509903f8.zip |
Replace keyboard shortcut icon
Use svg instead
Diffstat (limited to 'client/src/app/menu')
-rw-r--r-- | client/src/app/menu/menu.component.html | 6 | ||||
-rw-r--r-- | client/src/app/menu/menu.component.scss | 14 |
2 files changed, 4 insertions, 16 deletions
diff --git a/client/src/app/menu/menu.component.html b/client/src/app/menu/menu.component.html index ada53d844..a5985a301 100644 --- a/client/src/app/menu/menu.component.html +++ b/client/src/app/menu/menu.component.html | |||
@@ -59,11 +59,13 @@ | |||
59 | <div class="dropdown-divider"></div> | 59 | <div class="dropdown-divider"></div> |
60 | 60 | ||
61 | <a ngbDropdownItem ngbDropdownToggle class="dropdown-item" (click)="openHotkeysCheatSheet()"> | 61 | <a ngbDropdownItem ngbDropdownToggle class="dropdown-item" (click)="openHotkeysCheatSheet()"> |
62 | <i class="icon icon-shortcuts" aria-hidden="true"></i> <ng-container i18n>Keyboard shortcuts</ng-container> | 62 | <my-global-icon iconName="command" aria-hidden="true"></my-global-icon> |
63 | <ng-container i18n>Keyboard shortcuts</ng-container> | ||
63 | </a> | 64 | </a> |
64 | 65 | ||
65 | <a ngbDropdownItem ngbDropdownToggle (click)="logout($event)" class="dropdown-item" href="#"> | 66 | <a ngbDropdownItem ngbDropdownToggle (click)="logout($event)" class="dropdown-item" href="#"> |
66 | <my-global-icon iconName="sign-out" aria-hidden="true"></my-global-icon> <ng-container i18n>Log out</ng-container> | 67 | <my-global-icon iconName="sign-out" aria-hidden="true"></my-global-icon> |
68 | <ng-container i18n>Log out</ng-container> | ||
67 | </a> | 69 | </a> |
68 | </div> | 70 | </div> |
69 | </div> | 71 | </div> |
diff --git a/client/src/app/menu/menu.component.scss b/client/src/app/menu/menu.component.scss index c27f8f8c4..3ca4e47a1 100644 --- a/client/src/app/menu/menu.component.scss +++ b/client/src/app/menu/menu.component.scss | |||
@@ -352,20 +352,6 @@ menu { | |||
352 | color: #6c757d; | 352 | color: #6c757d; |
353 | } | 353 | } |
354 | 354 | ||
355 | .icon { | ||
356 | @include disable-outline; | ||
357 | @include icon($menu-link-icon-size); | ||
358 | opacity: 0.8; | ||
359 | |||
360 | &.icon-shortcuts { | ||
361 | position: relative; | ||
362 | top: -1px; | ||
363 | margin-right: 10px; | ||
364 | |||
365 | background-image: url('../../assets/images/misc/keyboard.png'); | ||
366 | } | ||
367 | } | ||
368 | |||
369 | input[type=checkbox]{ | 355 | input[type=checkbox]{ |
370 | position: absolute; | 356 | position: absolute; |
371 | visibility: hidden; | 357 | visibility: hidden; |