Fix margins/widths with top-menu and main-col on small screens

pull/2567/head
Rigel Kent 2020-03-13 15:30:23 +01:00
parent baab47ca81
commit c4741804bc
No known key found for this signature in database
GPG Key ID: 5E53E96A494E452F
8 changed files with 23 additions and 8 deletions

View File

@ -15,8 +15,13 @@
}
& > div {
padding: 10px;
width: 350px;
&:nth-child(2) {
max-width: 60px !important;
}
@media screen and (max-width: $small-view) {
width: auto;
@ -25,9 +30,4 @@
}
}
}
& > div {
padding: 10px
}
}

View File

@ -25,6 +25,7 @@ input[type=submit] {
textarea {
@include peertube-textarea(500px, 150px);
max-width: 100%;
display: block;
}

View File

@ -16,4 +16,5 @@
.progress {
width: 500px;
max-width: 100%;
}

View File

@ -1,3 +1,10 @@
.row {
flex-direction: column;
width: 100%;
& > my-top-menu-dropdown:nth-child(1) {
flex-grow: 1;
}
}

View File

@ -5,7 +5,7 @@
<div class="actor-img-edit-container">
<div class="actor-img-edit-button" [ngbTooltip]="'(extensions: '+ avatarExtensions +', max size: 100KB)'" placement="right" container="body">
<my-global-icon iconName="edit"></my-global-icon>
<input #avatarfileInput type="file" name="avatarfile" id="avatarfile" [accept]="avatarExtensions" (change)="onAvatarChange()"/>
<input #avatarfileInput type="file" title=" " name="avatarfile" id="avatarfile" [accept]="avatarExtensions" (change)="onAvatarChange()"/>
</div>
</div>

View File

@ -22,7 +22,7 @@
<div class="sub-header-container">
<my-menu *ngIf="menu.isMenuDisplayed"></my-menu>
<div id="content" tabindex="-1" class="main-col container-fluid" [ngClass]="{ expanded: menu.isMenuDisplayed === false }">
<div id="content" tabindex="-1" class="main-col" [ngClass]="{ expanded: menu.isMenuDisplayed === false }">
<div class="main-row">
<router-outlet></router-outlet>

View File

@ -8,6 +8,7 @@
.sub-header-container {
margin-top: $header-height;
background-color: var(--mainBackgroundColor);
width: 100%;
}
.header {

View File

@ -106,9 +106,13 @@ label {
color: black;
}
.row {
margin: 0;
}
.main-col {
margin-left: $menu-width;
width: auto;
width: calc(100% - #{$menu-width});
.margin-content {
margin-left: $not-expanded-horizontal-margins;
@ -130,6 +134,7 @@ label {
// Override some properties if the main content is expanded (no menu on the left)
&.expanded {
margin-left: 0;
width: 100%;
.margin-content {
margin-left: $expanded-horizontal-margins;