From ef7e9d2f73c04c5a77d41c9346789e8b89b8f770 Mon Sep 17 00:00:00 2001 From: Jason Date: Mon, 25 Aug 2025 10:31:09 +0800 Subject: [PATCH] style: remove Electron-specific drag region styles for bordered Tauri window --- src/App.css | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/App.css b/src/App.css index 5a37de2..0e7c239 100644 --- a/src/App.css +++ b/src/App.css @@ -12,8 +12,6 @@ justify-content: space-between; align-items: center; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); - /* 允许作为 Electron 的拖拽区域(macOS 隐藏标题栏时生效) */ - -webkit-app-region: drag; user-select: none; } @@ -25,8 +23,6 @@ .header-actions { display: flex; gap: 1rem; - /* header 内的交互元素需要排除拖拽,否则无法点击 */ - -webkit-app-region: no-drag; } .refresh-btn, .add-btn { @@ -36,8 +32,6 @@ cursor: pointer; font-size: 0.9rem; transition: all 0.2s; - /* 明确按钮不可拖拽,确保可点击 */ - -webkit-app-region: no-drag; } .refresh-btn {