Avoid showing gradients in especially small windows

This commit is contained in:
Robin
2026-07-09 12:59:29 +02:00
parent 32e30dd4f5
commit 8d826b2f31

View File

@@ -81,6 +81,7 @@ body {
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
} }
@media (min-height: 330px) {
body[data-background="gradient"]::before { body[data-background="gradient"]::before {
content: ""; content: "";
position: fixed; position: fixed;
@@ -96,6 +97,7 @@ body[data-background="gradient"][data-platform="desktop"]::before {
background-size: calc(max(1440px, 100vw)) calc(max(800px, 100vh)); background-size: calc(max(1440px, 100vw)) calc(max(800px, 100vh));
background-position: center; background-position: center;
} }
}
/* This prohibits the view to scroll for pages smaller than 122px in width /* This prohibits the view to scroll for pages smaller than 122px in width
we use this for mobile pip webviews */ we use this for mobile pip webviews */