Skip to content

Commit

Permalink
Workaround for Youtube homepage layout (MozillaReality#2617)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and Alexandre Lissy committed Jan 21, 2020
1 parent 9d0149a commit b4da667
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions app/src/main/assets/web_extensions/webcompat_youtube/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,31 @@
.ytp-share-icon {
display: none;
}


/* Fix Youtube homepage is wrongly displayed on only one column
See https://github.com/MozillaReality/FirefoxReality/issues/2595 */
ytd-rich-grid-video-renderer {
min-width: 0px;
}

@media screen and (max-width: 899px) {
ytd-rich-grid-renderer {
--ytd-rich-grid-items-per-row: 2 !important;
--ytd-rich-grid-posts-per-row: 2 !important;
}
}

@media screen and (max-width: 1115px) and (min-width: 900px) {
ytd-rich-grid-renderer {
--ytd-rich-grid-items-per-row: 3 !important;
--ytd-rich-grid-posts-per-row: 3 !important;
}
}

@media screen and (min-width: 1116px) {
ytd-rich-grid-renderer {
--ytd-rich-grid-items-per-row: 4 !important;
--ytd-rich-grid-posts-per-row: 4 !important;
}
}

0 comments on commit b4da667

Please sign in to comment.