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

Commit 84a3a31

Browse files
MortimerGorobluemarvin
authored andcommitted
Workaround for Youtube homepage layout (#2617)
1 parent ec93f75 commit 84a3a31

File tree

1 file changed

+28
-0
lines changed
  • app/src/main/assets/web_extensions/webcompat_youtube

1 file changed

+28
-0
lines changed

app/src/main/assets/web_extensions/webcompat_youtube/main.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,31 @@
88
.ytp-share-icon {
99
display: none;
1010
}
11+
12+
13+
/* Fix Youtube homepage is wrongly displayed on only one column
14+
See https://github.com/MozillaReality/FirefoxReality/issues/2595 */
15+
ytd-rich-grid-video-renderer {
16+
min-width: 0px;
17+
}
18+
19+
@media screen and (max-width: 899px) {
20+
ytd-rich-grid-renderer {
21+
--ytd-rich-grid-items-per-row: 2 !important;
22+
--ytd-rich-grid-posts-per-row: 2 !important;
23+
}
24+
}
25+
26+
@media screen and (max-width: 1115px) and (min-width: 900px) {
27+
ytd-rich-grid-renderer {
28+
--ytd-rich-grid-items-per-row: 3 !important;
29+
--ytd-rich-grid-posts-per-row: 3 !important;
30+
}
31+
}
32+
33+
@media screen and (min-width: 1116px) {
34+
ytd-rich-grid-renderer {
35+
--ytd-rich-grid-items-per-row: 4 !important;
36+
--ytd-rich-grid-posts-per-row: 4 !important;
37+
}
38+
}

0 commit comments

Comments
 (0)