Просмотр исходного кода

模式开关、关系图工具栏与行为时空按钮尺寸紧凑化

cc 2 часов назад
Родитель
Сommit
9555cbb4a5

+ 3 - 3
ai-electron/frontend/src/core/components/Application/src/AppWorkbenchToggle.vue

@@ -3,7 +3,7 @@
     <button
       type="button"
       :class="{ 'is-on': mode === 'traditional' }"
-      :title="mode === 'traditional' ? '当前:自主模式' : '切换到自主模式(现有布局)'"
+      :title="mode === 'traditional' ? '当前:自主模式' : '切换到自主模式'"
       @click="setMode('traditional')"
     >
       <Icon icon="i-mdi:view-dashboard-outline" :size="13" />
@@ -61,7 +61,7 @@
   .jeesite-workbench-switch {
     display: inline-flex;
     gap: 2px;
-    padding: 2px;
+    padding: 1px;
     background: rgba(0, 0, 0, 0.06);
     border: 1px solid rgba(0, 0, 0, 0.08);
     border-radius: 99px;
@@ -70,7 +70,7 @@
       display: inline-flex;
       align-items: center;
       gap: 5px;
-      height: 26px;
+      height: 24px;
       padding: 0 12px;
       font-size: 12.5px;
       /* 显式取文字色:布局壳给顶栏设过 color:#fff,继承下来未选中项会白字白底看不见 */

+ 13 - 9
ai-electron/frontend/src/graph/views/g6Editor/index.vue

@@ -6561,7 +6561,7 @@
       align-items: center;
       justify-content: space-between;
       gap: 12px;
-      padding: 10px 16px;
+      padding: 4px 16px;
       border-radius: 0;
       border: 1px solid rgba(148, 163, 184, 0.24);
       background: rgba(255, 255, 255, 0.92);
@@ -6577,14 +6577,14 @@
       font-size: 18px;
       font-weight: 700;
       color: #172554;
-      line-height: 24px;
+      line-height: 22px;
     }
 
     .page-subtitle {
-      margin-top: 2px;
+      margin-top: 0;
       font-size: 12px;
       color: #64748b;
-      line-height: 18px;
+      line-height: 16px;
     }
 
     .page-meta {
@@ -7382,8 +7382,8 @@
       display: flex;
       align-items: center;
       gap: 4px;
-      padding: 8px;
-      border-radius: 18px;
+      padding: 7px;
+      border-radius: 16px;
       border: 1px solid rgba(148, 163, 184, 0.2);
       background: rgba(255, 255, 255, 0.97);
       box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
@@ -7391,9 +7391,13 @@
     }
 
     .canvas-toolbar__button {
-      width: 38px;
-      height: 38px;
-      border-radius: 12px;
+      width: 32px;
+      height: 32px;
+      padding: 0;
+      display: inline-flex;
+      align-items: center;
+      justify-content: center;
+      border-radius: 10px;
       color: #334155;
     }
     .canvas-toolbar__button:hover:not(:disabled) {

+ 4 - 2
ai-electron/frontend/src/trans/views/behaviorSpacetime/index.vue

@@ -4046,8 +4046,10 @@
 
     .add-target-btn.ant-btn {
       min-width: 112px;
-      height: 30px;
-      border-radius: 4px;
+      height: 32px;
+      padding: 0 16px;
+      border-radius: 16px;
+      font-size: 14px;
       box-shadow: none;
       flex: 0 0 auto;
     }