fix(grid): sharpen canvas rendering under ui zoom

This commit is contained in:
t8y2 committed 2026-06-08 12:46:56 +08:00
1 parent afc8d8f3c1
commit 03f273bb4d
3 files changed
+89 -16

No files matched your search

+1
View File
@@ -252,6 +252,7 @@ async function applyUiScale(scale: number) {
try {
const { getCurrentWebview } = await import("@tauri-apps/api/webview");
await getCurrentWebview().setZoom(scale);
window.dispatchEvent(new CustomEvent("dbx:ui-scale-applied", { detail: { scale } }));
} catch (error) {
console.warn("[DBX] Failed to apply UI scale", { scale, error });
}