Proportional scaling inside grid (#1514)

* Proportional scaling inside grid

Cards inside grid (subscriptions, trending and others using the same system) now scale according to grid size.

* Update _ft-list-item.sass

Co-authored-by: Preston <freetubeapp@protonmail.com>
This commit is contained in:
Airidasz 2021-09-14 05:01:48 +03:00 committed by GitHub
parent aa5760a6b3
commit b4f70132b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View File

@ -1,7 +1,7 @@
.ft-auto-grid .ft-auto-grid
&.grid &.grid
display: grid display: grid
grid-template-columns: repeat(auto-fill, 262px) grid-template-columns: repeat(auto-fill, minmax(262px, 1fr) )
justify-content: space-evenly justify-content: space-evenly
grid-gap: 8px grid-gap: 8px

View File

@ -1,6 +1,5 @@
.grid { .grid {
min-height: 264px; min-height: 264px;
display: flex;
} }
.list { .list {

View File

@ -44,14 +44,12 @@ $thumbnail-overlay-opacity: 0.85
opacity: 1 opacity: 1
.videoThumbnail .videoThumbnail
display: flex
position: relative position: relative
.thumbnailLink .thumbnailLink
display: flex display: flex
.thumbnailImage .thumbnailImage
height: 130px
@include is-sidebar-item @include is-sidebar-item
height: 75px height: 75px
@ -62,6 +60,7 @@ $thumbnail-overlay-opacity: 0.85
.videoWatched .videoWatched
position: absolute position: absolute
top:0
padding: 2px padding: 2px
opacity: $thumbnail-overlay-opacity opacity: $thumbnail-overlay-opacity
color: var(--primary-text-color) color: var(--primary-text-color)
@ -207,7 +206,7 @@ $thumbnail-overlay-opacity: 0.85
margin-bottom: 12px margin-bottom: 12px
.thumbnailImage .thumbnailImage
width: 250px width: 100%
.title .title
font-size: 18px font-size: 18px