Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Workaround for Yotube homepage layout #2617

Merged
merged 1 commit into from
Jan 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}