mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-05-12 12:19:47 +08:00
- queryWithContext 中 find/count 命令改用原生 Collection.Find()和 CountDocuments() API,替代RunCommand 的 firstBatch 模式
- 新增 convertBsonValue 将 ObjectID/bson.M/bson.D/bson.A 转为JSON 友好类型,_id 列自动置首
- DBQuery 增加 MongoDB JSON 命令识别,避免 find 命令误走 Exec 分支
⚡️perf(macos): 动态控制 NSVisualEffectView 降低 MacOS GPU 持续消耗,Windows不受影响
- NSVisualEffectView 启动默认 alpha 由 0.72 改为 0,窗口默认 opaque
- 新增 gonaviSetEffectViewAlpha ObjC 函数支持运行时动态切换
- 新增 SetWindowTranslucency Wails 绑定方法供前端调用
- 启动重试次数由 24 次缩减至 8 次
- opacity=1.0 且 blur=0 时窗口标记 opaque,GPU 不再持续计算模糊合成
- App.tsx 仅保留最外层 Layout 的 backdropFilter,移除 TitleBar/MenuBar/Content/DataGrid/LogPanel 冗余嵌套
- App.css 移除暗色模式全局 text-shadow 减少 compositing 开销
80 lines
1.9 KiB
CSS
80 lines
1.9 KiB
CSS
html, body, #root {
|
||
height: 100%;
|
||
margin: 0;
|
||
padding: 0;
|
||
overflow: hidden; /* Disable global scrollbar */
|
||
background-color: transparent !important; /* CRITICAL: Allow Wails window transparency */
|
||
}
|
||
|
||
body, #root {
|
||
border-radius: 14px; /* Slightly rounded app window corners */
|
||
}
|
||
|
||
/* 侧边栏 Tree 样式优化 */
|
||
.ant-tree .ant-tree-treenode {
|
||
width: 100%;
|
||
}
|
||
|
||
.ant-tree .ant-tree-node-content-wrapper {
|
||
display: flex !important;
|
||
align-items: center;
|
||
white-space: nowrap;
|
||
user-select: none !important;
|
||
-webkit-user-select: none !important;
|
||
}
|
||
|
||
.ant-tree .ant-tree-title,
|
||
.ant-tree .ant-tree-treenode * {
|
||
user-select: none !important;
|
||
-webkit-user-select: none !important;
|
||
}
|
||
|
||
.ant-tree .ant-tree-title {
|
||
flex: 1;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
padding-right: 8px;
|
||
}
|
||
|
||
/* Scrollbar styling for dark mode */
|
||
body[data-theme='dark'] ::-webkit-scrollbar {
|
||
width: 10px;
|
||
height: 10px;
|
||
}
|
||
body[data-theme='dark'] ::-webkit-scrollbar-track {
|
||
background: #1f1f1f;
|
||
}
|
||
body[data-theme='dark'] ::-webkit-scrollbar-corner {
|
||
background: #1f1f1f;
|
||
}
|
||
body[data-theme='dark'] ::-webkit-scrollbar-thumb {
|
||
background: #424242;
|
||
border-radius: 4px;
|
||
border: 2px solid #1f1f1f;
|
||
}
|
||
body[data-theme='dark'] ::-webkit-scrollbar-thumb:hover {
|
||
background: #666;
|
||
}
|
||
|
||
/* Ensure body background matches theme to avoid white flashes, but kept transparent for window composition */
|
||
body {
|
||
transition: color 0.3s;
|
||
}
|
||
|
||
body[data-theme='dark'] {
|
||
/* 移除全局 text-shadow:对每个文本元素增加 GPU compositing 成本,
|
||
在透明窗口环境下会显著加剧 GPU 负载 */
|
||
}
|
||
|
||
/* 连接配置弹窗:滚动仅在弹窗 body 内部,不使用外层 wrap 滚动条 */
|
||
.connection-modal-wrap {
|
||
overflow: hidden !important;
|
||
}
|
||
|
||
/* Custom Title Bar Close Button Hover */
|
||
.titlebar-close-btn:hover {
|
||
background-color: #ff4d4f !important;
|
||
color: #fff !important;
|
||
}
|