Skip to content

Commit 7cd448c

Browse files
committed
🚸 优化统计信息界面
1 parent 675e70a commit 7cd448c

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

app/src/components/panel.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,11 @@ export namespace Panel {
7777
<div className="flex items-center justify-between px-6 py-4">
7878
<span className="text-xl font-bold">{title}</span>
7979
{closable && (
80-
<span className="cursor-pointer" onClick={() => setShow(false)}>
81-
<X />
80+
<span
81+
className="text-panel-error-text cursor-pointer rounded ring hover:scale-105"
82+
onClick={() => setShow(false)}
83+
>
84+
<X className="cursor-pointer" />
8285
</span>
8386
)}
8487
</div>

app/src/core/service/controlService/MouseLocation.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export namespace MouseLocation {
1717

1818
Controller.recordManipulate();
1919
// 检测是否超出范围
20+
// TODO: 这里还可以优化一下,给每个Controller都加一个mouseMoveOutWindowForcedShutdown方法
2021
if (x < 0 || x > window.innerWidth || y < 0 || y > window.innerHeight) {
2122
if (Stage.cuttingMachine.isUsing) {
2223
Stage.cuttingMachine.mouseMoveOutWindowForcedShutdown(vectorObject);

app/src/pages/_app_menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ export default function AppMenu({ className = "", open = false }: { className?:
488488
onClick={async () => {
489489
Panel.show(
490490
{
491-
title: "内容统计",
491+
title: `${Stage.path.isDraft() ? "草稿内容复杂度" : PathString.absolute2file(file) + " 内容复杂度"}`,
492492
widthRate: 1,
493493
},
494494
<>

0 commit comments

Comments
 (0)