From 3f870bdac1c9aca0f6f7602471e7ee0392d2707b Mon Sep 17 00:00:00 2001 From: RealZST Date: Fri, 1 May 2026 17:27:25 +0300 Subject: [PATCH] fix(select): normalize as heavy 3D-style buttons in WKWebView on macOS 15.x Sequoia, clashing with the rest of the flat UI (see #26 for screenshots). Newer macOS releases ship a flatter native chrome, but we can't rely on the user's OS version. Drop the `!isDesktop()` gate from `webSelectStyle` and `isWeb` so the normalized chrome (appearance: none + custom SVG arrow + matching border / padding) applies on desktop too. Add `WebkitAppearance: "none"` next to `appearance: "none"` as a defensive belt-and-suspenders for any older WebKit that doesn't honor unprefixed (Safari 15.4+ supports unprefixed; this is purely defensive). Verified visually in Tauri dev on macOS 26.4 — desktop renders identical to web. Original report from @Orchardxyz on macOS 15.6. Closes #26 Co-authored-by: Orchard --- src/lib/web-select.ts | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/lib/web-select.ts b/src/lib/web-select.ts index 0095113..fc18a78 100644 --- a/src/lib/web-select.ts +++ b/src/lib/web-select.ts @@ -1,23 +1,23 @@ -import { isDesktop } from "@/lib/transport"; - -/** Native `` chrome across web and desktop webviews. * - * macOS WebKit and Linux Chromium render native select chrome differently - * from each other and from Tauri's webview. Apply this `style` plus a - * matching className to keep `