<div class="channels" myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [autoInit]="true">
<div class="section channel" *ngFor="let videoChannel of videoChannels">
<div class="section-title">
- <a [routerLink]="[ '/video-channels', videoChannel.nameWithHost ]" i18n-title title="See this video channel">
+ <a [routerLink]="getVideoChannelLink(videoChannel)" i18n-title title="See this video channel">
<img [src]="videoChannel.avatarUrl" alt="Avatar" />
<div>{{ videoChannel.displayName }}</div>
<my-video-miniature *ngFor="let video of getVideosOf(videoChannel)" [video]="video" [user]="user" [displayVideoActions]="false"></my-video-miniature>
</div>
+
+ <a class="show-more" i18n [routerLink]="getVideoChannelLink(videoChannel)">
+ Show this channel
+ </a>
</div>
</div>
</div>
this.loadMoreChannels()
}
+
+ getVideoChannelLink (videoChannel: VideoChannel) {
+ return [ '/video-channels', videoChannel.nameWithHost ]
+ }
}
width: $video-miniature-width;
display: inline-flex;
flex-direction: column;
- margin-bottom: 30px;
+ margin-bottom: $video-miniature-margin-bottom;
height: 195px;
vertical-align: top;
@mixin miniature-rows {
max-height: 540px; // 2 rows max
overflow: hidden;
- padding-top: 10px;
&:first-child {
padding-top: 30px;
+
+ .section-title {
+ border-top: none !important;
+ }
}
my-video-miniature {
.section-title {
font-size: 24px;
font-weight: $font-semibold;
- margin-bottom: 30px;
+ padding-top: 15px;
+ margin-bottom: 15px;
display: flex;
justify-content: space-between;
+ border-top: 1px solid $separator-border-color;
a {
&:hover, &:focus:not(.focus-visible), &:active {
}
}
+ .show-more {
+ position: relative;
+ top: -5px;
+ display: inline-block;
+ font-size: 16px;
+ text-transform: uppercase;
+ color: $grey-foreground-color;
+ margin-bottom: 10px;
+ font-weight: $font-semibold;
+ }
+
@media screen and (max-width: $mobile-view) {
max-height: initial;
overflow: initial;
$separator-border-color: rgba(0, 0, 0, 0.10);
$video-miniature-width: 238px;
+$video-miniature-margin-bottom: 30px;
$video-thumbnail-height: 122px;
$video-thumbnail-width: 223px;
$video-thumbnail-ratio: $video-thumbnail-width / $video-thumbnail-height;