2 rows per overview section

This commit is contained in:
Chocobozzz 2019-04-05 17:00:09 +02:00
parent 32157c0892
commit 0f4905e120
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 101 additions and 85 deletions

View File

@ -10,6 +10,9 @@
height: 195px; height: 195px;
vertical-align: top; vertical-align: top;
.video-bottom {
display: flex;
.video-miniature-information { .video-miniature-information {
width: 200px; width: 200px;
line-height: normal; line-height: normal;
@ -56,36 +59,38 @@
} }
} }
.video-bottom {
display: flex;
.video-actions { .video-actions {
margin-top: 3px; margin-top: 3px;
margin-right: 10px; margin-right: 10px;
}
/deep/ .dropdown-root:not(.show) { /deep/ .dropdown-root:not(.show) {
display: none; display: none;
} }
&:hover /deep/ .dropdown-root { /deep/ .playlist-dropdown.show + my-action-dropdown .dropdown-root {
display: block; display: block;
} }
}
/deep/ .playlist-dropdown.show + my-action-dropdown .dropdown-root { &:hover .video-actions /deep/ .dropdown-root {
display: block; display: block;
} }
@media screen and (max-width: $small-view) { @media screen and (max-width: $small-view) {
.video-actions { .video-miniature-information .video-miniature-name {
margin-right: 0; margin-top: 0;
} }
.video-actions {
margin: 0;
top: -3px;
/deep/ .dropdown-root { /deep/ .dropdown-root {
display: block !important; display: block !important;
} }
} }
} }
}
&.display-as-row { &.display-as-row {
flex-direction: row; flex-direction: row;
@ -97,6 +102,7 @@
margin-right: 10px; margin-right: 10px;
} }
.video-bottom {
.video-miniature-information { .video-miniature-information {
width: auto; width: auto;
min-width: 500px; min-width: 500px;
@ -124,10 +130,11 @@
} }
} }
.video-bottom .video-actions { .video-actions {
margin: 0; margin: 0;
top: -3px; top: -3px;
} }
}
@media screen and (max-width: $small-view) { @media screen and (max-width: $small-view) {
flex-direction: column; flex-direction: column;

View File

@ -3,6 +3,8 @@
@import '_miniature'; @import '_miniature';
.section { .section {
max-height: 500px; // 2 rows max
overflow: hidden;
padding-top: 10px; padding-top: 10px;
&:first-child { &:first-child {
@ -44,11 +46,18 @@
} }
@media screen and (max-width: 500px) { @media screen and (max-width: 500px) {
.margin-content {
margin: 0 !important;
}
.section-title { .section-title {
font-size: 17px; font-size: 17px;
} }
.section { .section {
max-height: initial;
overflow: initial;
@include video-miniature-small-screen; @include video-miniature-small-screen;
} }
} }

View File

@ -94,7 +94,7 @@ async function getVideos (
) { ) {
const query = Object.assign({ const query = Object.assign({
start: 0, start: 0,
count: 10, count: 12,
sort: '-createdAt', sort: '-createdAt',
includeLocalVideos: true, includeLocalVideos: true,
nsfw: buildNSFWFilter(res), nsfw: buildNSFWFilter(res),