Skip to content

Commit 08ee1ab

Browse files
committed
FIX SAFARI VERSION TESTING
1 parent 7a8f1ea commit 08ee1ab

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/css/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ body {
8282
overflow-x: hidden;
8383
color: var(--text-color);
8484
font-size: 16pt;
85-
overscroll-behavior-y: none;
85+
overscroll-behavior: none;
8686
}
8787

8888
table,

src/js/project.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ window.addEventListener("load", () => {
4343
// (userAgent.browser.name === "Mobile Firefox" &&
4444
// userAgent.browser.major >= "26"))
4545
// ) {
46-
if ("scrollend" in window && userAgent.engine.name === "WebKit") {
46+
if (
47+
userAgent.engine.name === "WebKit" &&
48+
(window.AppleLiquid !== undefined ||
49+
CSS.supports("margin-bottom", "env(glass-safe-inset-bottom)"))
50+
) {
4751
document
4852
.querySelectorAll("summary.project-card")
4953
.forEach((el) => (el.querySelector("h1").style.marginTop = "-20px"));

0 commit comments

Comments
 (0)