From 095e0631c153d6a8599e690710d70708e15026ed Mon Sep 17 00:00:00 2001
From: JOJO <1498581755@qq.com>
Date: Fri, 12 Jun 2026 01:04:40 +0800
Subject: [PATCH] =?UTF-8?q?feat(sidebar):=20=E7=BB=9F=E4=B8=80Git=E5=92=8C?=
=?UTF-8?q?=E7=BB=88=E7=AB=AF=E4=BE=A7=E8=BE=B9=E6=A0=8F=E7=A9=BA=E7=8A=B6?=
=?UTF-8?q?=E6=80=81=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- Git空状态改为图标+大字,与终端风格一致
- 终端空状态去掉小字,文字改为当前没有开启的终端
- 统一头部栏高度为38px
- 统一空状态图标颜色为var(--text-tertiary) + 整体opacity
- 统一空tab文字为13px/600字重/左对齐
- 新增folder-git-2.svg图标
---
static/icons/folder-git-2.svg | 1 +
.../src/components/panels/GitChangesPanel.vue | 10 ++++++++-
.../src/components/panels/TerminalPanel.vue | 15 +++++--------
.../components/panels/_right-panel.scss | 21 ++++++++++++++-----
4 files changed, 31 insertions(+), 16 deletions(-)
create mode 100644 static/icons/folder-git-2.svg
diff --git a/static/icons/folder-git-2.svg b/static/icons/folder-git-2.svg
new file mode 100644
index 0000000..f122f04
--- /dev/null
+++ b/static/icons/folder-git-2.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/static/src/components/panels/GitChangesPanel.vue b/static/src/components/panels/GitChangesPanel.vue
index 31443a7..4f6727d 100644
--- a/static/src/components/panels/GitChangesPanel.vue
+++ b/static/src/components/panels/GitChangesPanel.vue
@@ -18,7 +18,15 @@
正在加载 Git 变更…
{{ error }}
-
当前没有未提交变更
+
+
+
当前没有未提交变更
+
@@ -466,9 +465,9 @@ onBeforeUnmount(() => {
.terminal-panel__empty-tab {
display: flex;
align-items: center;
- padding: 4px 10px;
- font-size: 12px;
- color: var(--text-muted);
+ font-size: 13px;
+ font-weight: 600;
+ color: var(--text-primary);
}
.terminal-panel__tab {
@@ -552,11 +551,7 @@ onBeforeUnmount(() => {
.terminal-panel__idle-svg {
width: 36px;
height: 36px;
- opacity: 0.35;
-}
-
-.terminal-panel__idle-hint {
- font-size: 11px;
+ color: var(--text-tertiary);
opacity: 0.55;
}
diff --git a/static/src/styles/components/panels/_right-panel.scss b/static/src/styles/components/panels/_right-panel.scss
index 32b20f6..0766862 100644
--- a/static/src/styles/components/panels/_right-panel.scss
+++ b/static/src/styles/components/panels/_right-panel.scss
@@ -77,8 +77,8 @@
.git-changes-panel__header {
flex: 0 0 auto;
- min-height: 54px;
- padding: 10px 14px 8px 16px;
+ min-height: 38px;
+ padding: 0 8px;
display: flex;
align-items: center;
justify-content: space-between;
@@ -182,10 +182,21 @@
}
.git-changes-panel__empty {
- padding: 48px 12px;
- color: var(--claude-text-secondary);
- text-align: center;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ height: 100%;
+ gap: 8px;
+ color: var(--text-muted);
font-size: 13px;
+
+ &-svg {
+ width: 36px;
+ height: 36px;
+ color: var(--text-tertiary);
+ opacity: 0.55;
+ }
}
.git-changes-panel__empty--error {