🐛 fix(query-editor): 优化事务工具栏排版并修复 Wails 开发页加载

- 将手动事务提交回滚按钮并入主工具栏,移除重复入口和未提交文案
- 调整 v2 查询工具栏顺序,收起结果区入口并统一更多、AI、设置交互
- 修正 Wails dev 地址为 127.0.0.1,避免 index.html not found
This commit is contained in:
Syngnat
2026-06-14 18:49:22 +08:00
parent a750266e1c
commit d7632e29a6
7 changed files with 275 additions and 99 deletions

View File

@@ -35,7 +35,7 @@ const QueryEditorTransactionToolbar: React.FC<QueryEditorTransactionToolbarProps
? autoCommitRemainingSeconds !== null && autoCommitRemainingSeconds > 0
? `${autoCommitRemainingSeconds}s 后自动提交`
: '自动提交中'
: '未提交';
: null;
const commitLabel = isV2Ui
? (
<>
@@ -56,9 +56,11 @@ const QueryEditorTransactionToolbar: React.FC<QueryEditorTransactionToolbarProps
whiteSpace: 'nowrap',
}}
>
<span style={{ fontSize: 12, color: darkMode ? '#d4d4d4' : '#666' }}>
{statusText}
</span>
{statusText ? (
<span style={{ fontSize: 12, color: darkMode ? '#d4d4d4' : '#666' }}>
{statusText}
</span>
) : null}
<Button
className={isV2Ui ? 'gn-v2-query-transaction-commit-button' : undefined}
size="small"