aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+accounts/account-video-channels
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+accounts/account-video-channels')
-rw-r--r--client/src/app/+accounts/account-video-channels/account-video-channels.component.html22
-rw-r--r--client/src/app/+accounts/account-video-channels/account-video-channels.component.scss9
-rw-r--r--client/src/app/+accounts/account-video-channels/account-video-channels.component.ts6
3 files changed, 23 insertions, 14 deletions
diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.html b/client/src/app/+accounts/account-video-channels/account-video-channels.component.html
index 200d9415f..38293b070 100644
--- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.html
+++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.html
@@ -37,16 +37,18 @@
37 37
38 <a i18n class="button-show-channel peertube-button-link orange-button-inverted" [routerLink]="getVideoChannelLink(videoChannel)">Show this channel</a> 38 <a i18n class="button-show-channel peertube-button-link orange-button-inverted" [routerLink]="getVideoChannelLink(videoChannel)">Show this channel</a>
39 39
40 <div class="videos"> 40 <div class="videos-overflow-workaround">
41 <div class="no-results" i18n *ngIf="getTotalVideosOf(videoChannel) === 0">This channel doesn't have any videos.</div> 41 <div class="videos">
42 42 <div class="no-results" i18n *ngIf="getTotalVideosOf(videoChannel) === 0">This channel doesn't have any videos.</div>
43 <my-video-miniature 43
44 *ngFor="let video of getVideosOf(videoChannel)" 44 <my-video-miniature
45 [video]="video" [user]="userMiniature" [displayVideoActions]="true" [displayOptions]="miniatureDisplayOptions" 45 *ngFor="let video of getVideosOf(videoChannel)"
46 ></my-video-miniature> 46 [video]="video" [user]="userMiniature" [displayVideoActions]="true" [displayOptions]="miniatureDisplayOptions"
47 47 ></my-video-miniature>
48 <div *ngIf="getTotalVideosOf(videoChannel)" class="miniature-show-channel"> 48
49 <a i18n [routerLink]="getVideoChannelLink(videoChannel)">SHOW THIS CHANNEL ></a> 49 <div *ngIf="getTotalVideosOf(videoChannel)" class="miniature-show-channel">
50 <a i18n [routerLink]="getVideoChannelLink(videoChannel)">SHOW THIS CHANNEL ></a>
51 </div>
50 </div> 52 </div>
51 </div> 53 </div>
52 </div> 54 </div>
diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss b/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss
index 832ddf973..11ed4c3b1 100644
--- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss
+++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss
@@ -77,10 +77,8 @@ my-subscribe-button {
77 display: flex; 77 display: flex;
78 grid-column: 1 / 3; 78 grid-column: 1 / 3;
79 grid-row: 2; 79 grid-row: 2;
80 margin-top: 30px;
81 80
82 position: relative; 81 position: relative;
83 overflow: hidden;
84 82
85 my-video-miniature { 83 my-video-miniature {
86 @include margin-right(15px); 84 @include margin-right(15px);
@@ -94,6 +92,11 @@ my-subscribe-button {
94 } 92 }
95} 93}
96 94
95.videos-overflow-workaround {
96 margin-top: 30px;
97 overflow-x: hidden;
98}
99
97.miniature-show-channel { 100.miniature-show-channel {
98 height: 100%; 101 height: 100%;
99 position: absolute; 102 position: absolute;
@@ -112,7 +115,7 @@ my-subscribe-button {
112 display: none; 115 display: none;
113} 116}
114 117
115@media screen and (max-width: $mobile-view) { 118@include on-small-main-col {
116 .channel { 119 .channel {
117 padding: 15px; 120 padding: 15px;
118 } 121 }
diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts b/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts
index 457a432fe..59814a93d 100644
--- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts
+++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts
@@ -105,7 +105,11 @@ export class AccountVideoChannelsComponent implements OnInit, OnDestroy {
105 }) 105 })
106 ) 106 )
107 .subscribe(async ({ videoChannel, videos, total }) => { 107 .subscribe(async ({ videoChannel, videos, total }) => {
108 this.channelsDescriptionHTML[videoChannel.id] = await this.markdown.textMarkdownToHTML(videoChannel.description) 108 this.channelsDescriptionHTML[videoChannel.id] = await this.markdown.textMarkdownToHTML({
109 markdown: videoChannel.description,
110 withEmoji: true,
111 withHtml: true
112 })
109 113
110 this.videoChannels.push(videoChannel) 114 this.videoChannels.push(videoChannel)
111 115