diff options
Diffstat (limited to 'client/src/app/menu')
-rw-r--r-- | client/src/app/menu/menu.component.html | 16 | ||||
-rw-r--r-- | client/src/app/menu/menu.component.scss | 2 | ||||
-rw-r--r-- | client/src/app/menu/notification.component.html | 7 |
3 files changed, 12 insertions, 13 deletions
diff --git a/client/src/app/menu/menu.component.html b/client/src/app/menu/menu.component.html index 6c5258010..0786b953b 100644 --- a/client/src/app/menu/menu.component.html +++ b/client/src/app/menu/menu.component.html | |||
@@ -7,7 +7,7 @@ | |||
7 | class="logged-in-more" ngbDropdown #dropdown="ngbDropdown" placement="bottom-left auto" | 7 | class="logged-in-more" ngbDropdown #dropdown="ngbDropdown" placement="bottom-left auto" |
8 | [container]="dropdownContainer" (openChange)="onDropdownOpenChange($event)" autoClose="outside" | 8 | [container]="dropdownContainer" (openChange)="onDropdownOpenChange($event)" autoClose="outside" |
9 | > | 9 | > |
10 | <div ngbDropdownToggle> | 10 | <button class="border-0 text-start" ngbDropdownToggle> |
11 | <my-actor-avatar [actor]="user.account" actorType="account" size="34"></my-actor-avatar> | 11 | <my-actor-avatar [actor]="user.account" actorType="account" size="34"></my-actor-avatar> |
12 | 12 | ||
13 | <div class="logged-in-info"> | 13 | <div class="logged-in-info"> |
@@ -19,7 +19,7 @@ | |||
19 | <div class="dropdown-toggle-indicator"> | 19 | <div class="dropdown-toggle-indicator"> |
20 | <span class="chevron-down"></span> | 20 | <span class="chevron-down"></span> |
21 | </div> | 21 | </div> |
22 | </div> | 22 | </button> |
23 | 23 | ||
24 | <div ngbDropdownMenu> | 24 | <div ngbDropdownMenu> |
25 | <a | 25 | <a |
@@ -31,14 +31,14 @@ | |||
31 | 31 | ||
32 | <div class="dropdown-divider"></div> | 32 | <div class="dropdown-divider"></div> |
33 | 33 | ||
34 | <a | 34 | <button |
35 | myPluginSelector pluginSelectorId="menu-user-dropdown-language-item" | 35 | myPluginSelector pluginSelectorId="menu-user-dropdown-language-item" |
36 | ngbDropdownItem ngbDropdownToggle class="dropdown-item" (click)="openLanguageChooser()" | 36 | ngbDropdownItem ngbDropdownToggle class="dropdown-item" (click)="openLanguageChooser()" |
37 | > | 37 | > |
38 | <my-global-icon iconName="language" aria-hidden="true"></my-global-icon> | 38 | <my-global-icon iconName="language" aria-hidden="true"></my-global-icon> |
39 | <span i18n>Interface:</span> | 39 | <span i18n>Interface:</span> |
40 | <span class="ms-auto muted">{{ currentInterfaceLanguage }}</span> | 40 | <span class="ms-auto muted">{{ currentInterfaceLanguage }}</span> |
41 | </a> | 41 | </button> |
42 | 42 | ||
43 | <a ngbDropdownItem ngbDropdownToggle class="dropdown-item" routerLink="/my-account/settings" fragment="video-languages-subtitles" | 43 | <a ngbDropdownItem ngbDropdownToggle class="dropdown-item" routerLink="/my-account/settings" fragment="video-languages-subtitles" |
44 | #settingsLanguagesSubtitles (click)="onActiveLinkScrollToAnchor(settingsLanguagesSubtitles)"> | 44 | #settingsLanguagesSubtitles (click)="onActiveLinkScrollToAnchor(settingsLanguagesSubtitles)"> |
@@ -57,12 +57,12 @@ | |||
57 | <span class="ms-auto muted">{{ nsfwPolicy }}</span> | 57 | <span class="ms-auto muted">{{ nsfwPolicy }}</span> |
58 | </a> | 58 | </a> |
59 | 59 | ||
60 | <a ngbDropdownItem class="dropdown-item" (click)="toggleUseP2P()"> | 60 | <button ngbDropdownItem class="dropdown-item" (click)="toggleUseP2P()"> |
61 | <my-global-icon iconName="p2p" aria-hidden="true"></my-global-icon> | 61 | <my-global-icon iconName="p2p" aria-hidden="true"></my-global-icon> |
62 | <ng-container i18n>Help share videos</ng-container> | 62 | <ng-container i18n>Help share videos</ng-container> |
63 | 63 | ||
64 | <my-input-switch class="ms-auto" [checked]="user.p2pEnabled"></my-input-switch> | 64 | <my-input-switch class="ms-auto" [checked]="user.p2pEnabled"></my-input-switch> |
65 | </a> | 65 | </button> |
66 | 66 | ||
67 | <div class="dropdown-divider"></div> | 67 | <div class="dropdown-divider"></div> |
68 | 68 | ||
@@ -100,9 +100,9 @@ | |||
100 | </div> | 100 | </div> |
101 | 101 | ||
102 | <div *ngIf="!isLoggedIn" class="login-buttons-block"> | 102 | <div *ngIf="!isLoggedIn" class="login-buttons-block"> |
103 | <my-login-link className="peertube-button-link orange-button w-100"></my-login-link> | 103 | <my-login-link className="peertube-button-link orange-button w-100 text-truncate"></my-login-link> |
104 | 104 | ||
105 | <a *ngIf="isRegistrationAllowed()" routerLink="/signup" class="peertube-button-link create-account-button"> | 105 | <a *ngIf="isRegistrationAllowed()" routerLink="/signup" class="peertube-button-link create-account-button text-truncate"> |
106 | <my-signup-label [requiresApproval]="requiresApproval"></my-signup-label> | 106 | <my-signup-label [requiresApproval]="requiresApproval"></my-signup-label> |
107 | </a> | 107 | </a> |
108 | </div> | 108 | </div> |
diff --git a/client/src/app/menu/menu.component.scss b/client/src/app/menu/menu.component.scss index a51686601..4b1ed65ce 100644 --- a/client/src/app/menu/menu.component.scss +++ b/client/src/app/menu/menu.component.scss | |||
@@ -252,8 +252,6 @@ my-actor-avatar { | |||
252 | 252 | ||
253 | > a, | 253 | > a, |
254 | > my-login-link { | 254 | > my-login-link { |
255 | @include ellipsis; | ||
256 | |||
257 | display: block; | 255 | display: block; |
258 | width: 100%; | 256 | width: 100%; |
259 | 257 | ||
diff --git a/client/src/app/menu/notification.component.html b/client/src/app/menu/notification.component.html index 7a62800f5..907828efb 100644 --- a/client/src/app/menu/notification.component.html +++ b/client/src/app/menu/notification.component.html | |||
@@ -3,15 +3,16 @@ | |||
3 | <div *ngIf="unreadNotifications >= 100" class="unread-notifications">99+</div> | 3 | <div *ngIf="unreadNotifications >= 100" class="unread-notifications">99+</div> |
4 | </ng-template> | 4 | </ng-template> |
5 | 5 | ||
6 | <div | 6 | <button |
7 | [ngbPopover]="popContent" autoClose="outside" placement="bottom" container={this} popoverClass="popover-notifications" | 7 | [ngbPopover]="popContent" autoClose="outside" placement="bottom" container={this} popoverClass="popover-notifications" |
8 | i18n-title title="View your notifications" [ngClass]="{ 'notification-inbox-popover': true, 'shown': opened, 'hidden': isInMobileView }" | 8 | i18n-title title="View your notifications" |
9 | class="border-0 text-start" [ngClass]="{ 'notification-inbox-popover': true, 'shown': opened, 'hidden': isInMobileView }" | ||
9 | #popover="ngbPopover" (shown)="onPopoverShown()" (hidden)="onPopoverHidden()" | 10 | #popover="ngbPopover" (shown)="onPopoverShown()" (hidden)="onPopoverHidden()" |
10 | > | 11 | > |
11 | <ng-container *ngTemplateOutlet="notificationNumber"></ng-container> | 12 | <ng-container *ngTemplateOutlet="notificationNumber"></ng-container> |
12 | 13 | ||
13 | <my-global-icon iconName="bell"></my-global-icon> | 14 | <my-global-icon iconName="bell"></my-global-icon> |
14 | </div> | 15 | </button> |
15 | 16 | ||
16 | <div *ngIf="isInMobileView" i18n-title title="View your notifications" class="notification-inbox-link"> | 17 | <div *ngIf="isInMobileView" i18n-title title="View your notifications" class="notification-inbox-link"> |
17 | <ng-container *ngTemplateOutlet="notificationNumber"></ng-container> | 18 | <ng-container *ngTemplateOutlet="notificationNumber"></ng-container> |