X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fvideo%2Fabstract-video-list.scss;h=982204e21d99bb9a23b52c7b6eefa634fd8ffefb;hb=d840487fed32b4604b02030c0d7464afa925904f;hp=2aab40ea8a5189a8ae4ada3f06333045c96808e8;hpb=1bab226f5c2e678039ed40f87ab3fe05f3ebd0f4;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/video/abstract-video-list.scss b/client/src/app/shared/video/abstract-video-list.scss index 2aab40ea8..982204e21 100644 --- a/client/src/app/shared/video/abstract-video-list.scss +++ b/client/src/app/shared/video/abstract-video-list.scss @@ -4,18 +4,20 @@ @import '_miniature'; .videos { + $column-width: #{$video-thumbnail-width - 25px}; + display: grid; column-gap: calc(10px + .2%); grid-template-columns: repeat( auto-fill, minmax( - var(--miniature-min-width, #{$video-thumbnail-width}), + var(--miniature-min-width, #{$column-width}), 1fr ) ); - @media screen and (min-width: #{breakpoint(xxl)}) { - --miniature-min-width: 300px; + @media screen and (min-width: #{breakpoint(fhd)}) { + --miniature-min-width: #{$column-width + 100px}; } } @@ -61,12 +63,13 @@ font-weight: $font-semibold; margin-bottom: 20px; margin-top: -10px; - padding-top: 20px; // make the element span a full grid row within .videos grid grid-column: 1 / -1; &:not(:first-child) { + margin-top: .5rem; + padding-top: 20px; border-top: 1px solid $separator-border-color; } }