mirror of
https://github.com/ILoveBingLu/CipherTalk.git
synced 2026-05-20 03:23:21 +08:00
fix: 修正 Windows 标题栏 overlay 计算过小导致的控件重叠并升级到 4.1.7
This commit is contained in:
@@ -10,6 +10,14 @@
|
||||
### 变更
|
||||
- 暂无
|
||||
|
||||
## [4.1.7] - 2026-04-08
|
||||
|
||||
### 修复
|
||||
- 修复 Windows 独立窗口标题栏在读取原生 overlay 几何后把右侧保底安全区压缩过小的问题,避免朋友圈右上角按钮再次进入系统窗口控件区域
|
||||
|
||||
### 变更
|
||||
- 调整独立窗口标题栏安全区换算逻辑,改为平台保底值与 overlay 实测值取最大值,避免实测值异常时覆盖默认避让
|
||||
|
||||
## [4.1.6] - 2026-04-08
|
||||
|
||||
### 修复
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
**一款现代化的微信聊天记录查看与分析工具**
|
||||
|
||||
[](LICENSE)
|
||||
[](package.json)
|
||||
[](package.json)
|
||||
[]()
|
||||
[]()
|
||||
[]()
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "ciphertalk",
|
||||
"version": "4.1.6",
|
||||
"version": "4.1.7",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "ciphertalk",
|
||||
"version": "4.1.6",
|
||||
"version": "4.1.7",
|
||||
"hasInstallScript": true,
|
||||
"license": "CC-BY-NC-SA-4.0",
|
||||
"dependencies": {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ciphertalk",
|
||||
"version": "4.1.6",
|
||||
"version": "4.1.7",
|
||||
"description": "密语 - 微信聊天记录查看工具",
|
||||
"author": "ILoveBingLu",
|
||||
"license": "CC-BY-NC-SA-4.0",
|
||||
|
||||
@@ -98,11 +98,18 @@ export function syncWindowControlsOverlayToDocument(
|
||||
}
|
||||
|
||||
const normalizedPlatform = normalizeWindowPlatform(platform)
|
||||
const fallbackMetrics = getWindowChromeMetrics(normalizedPlatform)
|
||||
const overlayPadding = WINDOW_CONTROLS_OVERLAY_PADDING[normalizedPlatform]
|
||||
const controlsRightWidth = Math.max(0, viewportWidth - titlebarAreaRect.x - titlebarAreaRect.width)
|
||||
const chromeHeight = Math.max(parsePixels(WINDOW_CHROME_HEIGHT), titlebarAreaRect.height)
|
||||
const controlsLeftSafe = Math.max(overlayPadding.left, titlebarAreaRect.x + overlayPadding.left)
|
||||
const controlsRightSafe = Math.max(overlayPadding.right, controlsRightWidth + overlayPadding.right)
|
||||
const controlsLeftSafe = Math.max(
|
||||
parsePixels(fallbackMetrics.controlsLeftSafe),
|
||||
titlebarAreaRect.x + overlayPadding.left
|
||||
)
|
||||
const controlsRightSafe = Math.max(
|
||||
parsePixels(fallbackMetrics.controlsRightSafe),
|
||||
controlsRightWidth + overlayPadding.right
|
||||
)
|
||||
|
||||
root.style.setProperty('--window-chrome-height', toPixels(chromeHeight))
|
||||
root.style.setProperty('--window-controls-left-safe', toPixels(controlsLeftSafe))
|
||||
|
||||
Reference in New Issue
Block a user