diff --git a/src/components/layout/TitleBar.tsx b/src/components/layout/TitleBar.tsx
index 5a3f1dc..b2f2129 100644
--- a/src/components/layout/TitleBar.tsx
+++ b/src/components/layout/TitleBar.tsx
@@ -11,9 +11,7 @@ export function TitleBar() {
className="flex items-center justify-between px-4 py-2 border-b select-none"
style={{ borderColor: 'var(--app-border)' }}
>
-
);
diff --git a/src/components/path-list/MergePreview.tsx b/src/components/path-list/MergePreview.tsx
index d57d32a..6f1ad40 100644
--- a/src/components/path-list/MergePreview.tsx
+++ b/src/components/path-list/MergePreview.tsx
@@ -56,8 +56,7 @@ export function MergePreview() {
diff --git a/src/components/path-list/PathTable.tsx b/src/components/path-list/PathTable.tsx
index cc198df..812e304 100644
--- a/src/components/path-list/PathTable.tsx
+++ b/src/components/path-list/PathTable.tsx
@@ -42,7 +42,8 @@ export function PathTable({ tabId }: PathTableProps) {
const result: PathRow[] = [];
for (let i = 0; i < paths.length; i++) {
const p = paths[i];
- if (p.path.toLowerCase().includes(q)) result.push({ path: p.path, index: i, enabled: p.enabled });
+ if (p.path.toLowerCase().includes(q))
+ result.push({ path: p.path, index: i, enabled: p.enabled });
}
return result;
}, [paths, searchQuery]);
@@ -74,15 +75,15 @@ export function PathTable({ tabId }: PathTableProps) {
});
});
- return () => { cancelled = true; };
+ return () => {
+ cancelled = true;
+ };
}, [paths]);
// 异步展开环境变量(用于 tooltip)
useEffect(() => {
let cancelled = false;
- const toExpand = paths.filter(
- (p) => p.path.includes('%') && !expandedRef.current.has(p.path),
- );
+ const toExpand = paths.filter((p) => p.path.includes('%') && !expandedRef.current.has(p.path));
if (toExpand.length === 0) return;
const batch = toExpand.slice(0, 20);
@@ -105,7 +106,9 @@ export function PathTable({ tabId }: PathTableProps) {
});
});
- return () => { cancelled = true; };
+ return () => {
+ cancelled = true;
+ };
}, [paths]);
// 所有路径默认有效(异步验证结果回来后再精确染色)
@@ -194,7 +197,10 @@ export function PathTable({ tabId }: PathTableProps) {
: 'var(--app-list-alt)',
}}
>
- |
+ |
{index + 1}
|
diff --git a/src/components/toolbar/ToolBar.tsx b/src/components/toolbar/ToolBar.tsx
index f45b412..4964054 100644
--- a/src/components/toolbar/ToolBar.tsx
+++ b/src/components/toolbar/ToolBar.tsx
@@ -36,12 +36,7 @@ export function ToolBar(props: ToolBarProps) {
- |