fixing grid readjustment with expand and screens < 1150px
This commit is contained in:
parent
6aff854c0e
commit
3b766e181c
|
@ -22,7 +22,7 @@
|
||||||
<div class="sub-header-container">
|
<div class="sub-header-container">
|
||||||
<my-menu *ngIf="isMenuDisplayed"></my-menu>
|
<my-menu *ngIf="isMenuDisplayed"></my-menu>
|
||||||
|
|
||||||
<div class="main-col container-fluid" [ngClass]="{ expanded: isMenuDisplayed === false }">
|
<div id="right-container" class="main-col container-fluid" [ngClass]="{ expanded: isMenuDisplayed === false }">
|
||||||
|
|
||||||
<div class="main-row">
|
<div class="main-row">
|
||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<!-- Video information -->
|
<!-- Video information -->
|
||||||
<div *ngIf="video" class="margin-content video-bottom">
|
<div *ngIf="video" class="margin-content video-bottom">
|
||||||
<div class="row fullWidth">
|
<div class="row fullWidth">
|
||||||
<div class="col-12 col-lg-9 video-info">
|
<div class="col-12 col-lg-auto video-info">
|
||||||
<div class="video-info-first-row">
|
<div class="video-info-first-row">
|
||||||
<div>
|
<div>
|
||||||
<div class="d-block d-sm-none"> <!-- only shown on small devices, has its conterpart for larger viewports below -->
|
<div class="d-block d-sm-none"> <!-- only shown on small devices, has its conterpart for larger viewports below -->
|
||||||
|
@ -197,12 +197,16 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<my-video-comments [video]="video" [user]="user"></my-video-comments>
|
<my-video-comments [video]="video" [user]="user"></my-video-comments>
|
||||||
</div>
|
</div>
|
||||||
<my-recommended-videos class="col-12 col-lg-3"
|
|
||||||
[inputRecommendation]="{ uuid: video.uuid, tags: video.tags }" [user]="user"></my-recommended-videos>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<div *ngIf="!isMenuExpanded()" class="w-100-until-1150px"></div>
|
||||||
|
|
||||||
|
<my-recommended-videos class="col-12 col-lg-3"
|
||||||
|
[inputRecommendation]="{ uuid: video.uuid, tags: video.tags }" [user]="user"></my-recommended-videos>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false">
|
<div class="privacy-concerns" *ngIf="hasAlreadyAcceptedPrivacyConcern === false">
|
||||||
<div class="privacy-concerns-text">
|
<div class="privacy-concerns-text">
|
||||||
<strong i18n>Friendly Reminder: </strong>
|
<strong i18n>Friendly Reminder: </strong>
|
||||||
|
|
|
@ -37,8 +37,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/ .video-js {
|
/deep/ .video-js {
|
||||||
width: 888px;
|
width: calc(100vw - 240px);
|
||||||
height: 500px;
|
height: auto;
|
||||||
|
max-height: 500px;
|
||||||
|
|
||||||
&.vjs-theater-enabled {
|
&.vjs-theater-enabled {
|
||||||
height: calc(100vh - #{$header-height} - #{$theater-bottom-space});
|
height: calc(100vh - #{$header-height} - #{$theater-bottom-space});
|
||||||
|
@ -479,6 +480,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1150px) {
|
||||||
|
.w-100-until-1150px { width: 100% !important }
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 600px) {
|
@media screen and (max-width: 600px) {
|
||||||
.video-bottom {
|
.video-bottom {
|
||||||
margin: 20px 0 0 0;
|
margin: 20px 0 0 0;
|
||||||
|
|
|
@ -317,6 +317,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
|
||||||
return this.video && this.video.state.id === VideoState.TO_IMPORT
|
return this.video && this.video.state.id === VideoState.TO_IMPORT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isMenuExpanded () {
|
||||||
|
return document.getElementById('right-container').classList.contains('expanded')
|
||||||
|
}
|
||||||
|
|
||||||
hasVideoScheduledPublication () {
|
hasVideoScheduledPublication () {
|
||||||
return this.video && this.video.scheduledUpdate !== undefined
|
return this.video && this.video.scheduledUpdate !== undefined
|
||||||
}
|
}
|
||||||
|
|
|
@ -363,3 +363,9 @@ table {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 400px) {
|
||||||
|
menu {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue