aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-video-miniature
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared-video-miniature')
-rw-r--r--client/src/app/shared/shared-video-miniature/abstract-video-list.html22
-rw-r--r--client/src/app/shared/shared-video-miniature/abstract-video-list.scss25
2 files changed, 29 insertions, 18 deletions
diff --git a/client/src/app/shared/shared-video-miniature/abstract-video-list.html b/client/src/app/shared/shared-video-miniature/abstract-video-list.html
index 70be78af0..6df589c38 100644
--- a/client/src/app/shared/shared-video-miniature/abstract-video-list.html
+++ b/client/src/app/shared/shared-video-miniature/abstract-video-list.html
@@ -9,19 +9,23 @@
9 <div class="action-block"> 9 <div class="action-block">
10 <my-feed *ngIf="titlePage" [syndicationItems]="syndicationItems"></my-feed> 10 <my-feed *ngIf="titlePage" [syndicationItems]="syndicationItems"></my-feed>
11 <a [routerLink]="action.routerLink" routerLinkActive="active" *ngFor="let action of actions"> 11 <a [routerLink]="action.routerLink" routerLinkActive="active" *ngFor="let action of actions">
12 <button class="btn"> 12 <my-button [icon]="action.iconName" [label]="action.label"></my-button>
13 <my-global-icon [iconName]="action.iconName" aria-hidden="true"></my-global-icon>
14 <span>{{ action.label }}</span>
15 </button>
16 </a> 13 </a>
17 </div> 14 </div>
18 15
19 <div class="moderation-block" *ngIf="displayModerationBlock"> 16 <div class="moderation-block" *ngIf="displayModerationBlock">
20 <my-peertube-checkbox 17 <div class="c-hand" ngbDropdown container="body" placement="bottom-right auto">
21 (change)="toggleModerationDisplay()" 18 <my-global-icon iconName="cog" ngbDropdownToggle></my-global-icon>
22 inputName="display-unlisted-private" i18n-labelText labelText="Display unlisted and private videos" 19
23 > 20 <div role="menu" class="dropdown-menu" ngbDropdownMenu>
24 </my-peertube-checkbox> 21 <div class="dropdown-item">
22 <my-peertube-checkbox
23 (change)="toggleModerationDisplay()"
24 inputName="display-unlisted-private" i18n-labelText labelText="Display unlisted and private videos"
25 ></my-peertube-checkbox>
26 </div>
27 </div>
28 </div>
25 </div> 29 </div>
26 </div> 30 </div>
27 31
diff --git a/client/src/app/shared/shared-video-miniature/abstract-video-list.scss b/client/src/app/shared/shared-video-miniature/abstract-video-list.scss
index 1660c6812..7841b60f7 100644
--- a/client/src/app/shared/shared-video-miniature/abstract-video-list.scss
+++ b/client/src/app/shared/shared-video-miniature/abstract-video-list.scss
@@ -3,32 +3,39 @@
3@import '_mixins'; 3@import '_mixins';
4@import '_miniature'; 4@import '_miniature';
5 5
6$iconSize: 16px;
7
6.videos-header { 8.videos-header {
7 display: flex; 9 display: flex;
8 justify-content: space-between; 10 justify-content: space-between;
9 align-items: baseline; 11 align-items: center;
10 12
11 .title-page.title-page-single { 13 .title-page.title-page-single {
12 display: flex; 14 display: flex;
13 15 flex-grow: 1;
14 my-feed {
15 display: inline-block;
16 top: 1px;
17 width: max-content;
18 }
19 } 16 }
20 17
21 .action-block { 18 .action-block {
19 ::ng-deep my-feed {
20 my-global-icon {
21 width: calc(#{$iconSize} - 2px);
22 }
23 }
24
22 a button { 25 a button {
23 @include peertube-button; 26 @include peertube-button;
24 @include grey-button; 27 @include grey-button;
25 @include button-with-icon(18px, 3px, -1px); 28 @include button-with-icon($iconSize, 3px, -1px);
26 } 29 }
27 } 30 }
28 31
29 .moderation-block { 32 .moderation-block {
33 div {
34 @include button-with-icon($iconSize, 3px, -1px);
35 }
36
37 margin-left: .2rem;
30 display: flex; 38 display: flex;
31 flex-grow: 1;
32 justify-content: flex-end; 39 justify-content: flex-end;
33 align-items: center; 40 align-items: center;
34 } 41 }