From 819a47fad728afd0f1ab06b3587b4ce741123898 Mon Sep 17 00:00:00 2001 From: oimwiodev Date: Sat, 16 May 2026 14:33:15 +0100 Subject: [PATCH] Fix desktop glass rendering artifacts --- CHANGELOG.md | 6 ++++++ components/LiquidGlass.tsx | 1 + components/Navbar.tsx | 2 +- components/PhysicsButton.tsx | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f02198..010705d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to the New Optic website will be documented in this file. +## Unreleased + +### Changed + +- Removed the desktop liquid glass WebGL layer from navbar and CTA controls so text remains readable and glass surfaces do not show dark rendering artifacts while scrolling. + ## [1.0.0] - 2026-05-16 ### Added diff --git a/components/LiquidGlass.tsx b/components/LiquidGlass.tsx index 4a20bec..d07bc99 100644 --- a/components/LiquidGlass.tsx +++ b/components/LiquidGlass.tsx @@ -20,6 +20,7 @@ export default function LiquidGlass() { const isMobileUserAgent = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|Tablet/i.test(userAgent); const hasCoarsePrimaryPointer = window.matchMedia("(pointer: coarse)").matches; if (isMobileUserAgent || hasCoarsePrimaryPointer) return; + if (!document.querySelector(".liquidGL-pane")) return; let cancelled = false; let attempts = 0; diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 0c9cfea..d89f66c 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -24,7 +24,7 @@ export default function Navbar({ locale, onLocaleChange, t, whatsappUrl }: { loc return (
-