Преглед на файлове

fix(table): 单行数据时末行底边不显示

- 去掉 analysis-card-ui 与三个联系分析页的 tr:last-child 底边清零规则
- AI markdown 表格同样保留末行底边
- 表体是撑满剩余高度的滚动区,单行时末行线是表格唯一的下边界
cc преди 3 седмици
родител
ревизия
f48004c347

+ 1 - 3
ai-electron/frontend/src/ai/styles/ai.less

@@ -414,9 +414,7 @@
     border-bottom-color: var(--ai-border-strong);
   }
 
-  tbody tr:last-child td {
-    border-bottom: 0;
-  }
+  /* 末行保留底边,单行表格同样有下边框(与上面的"表体上下边框"注释一致) */
 
   pre {
     margin: var(--ai-sp-3) 0;

+ 1 - 3
ai-electron/frontend/src/call/views/continuous/index.vue

@@ -861,9 +861,7 @@
       font-size: 12px;
     }
 
-    .table-wrapper .ant-table-tbody > tr:last-child > td {
-      border-bottom: 0 !important;
-    }
+    /* 末行保留底边:表体撑满剩余高度,只有一条数据时去掉末行线会让表格"开口" */
 
     .table-wrapper .ant-table-tbody > tr:hover > td {
       background: #eef4ff !important;

+ 1 - 3
ai-electron/frontend/src/call/views/night/index.vue

@@ -1344,9 +1344,7 @@
       font-size: 12px;
     }
 
-    .table-wrapper .ant-table-tbody > tr:last-child > td {
-      border-bottom: 0 !important;
-    }
+    /* 末行保留底边:表体撑满剩余高度,只有一条数据时去掉末行线会让表格"开口" */
 
     .table-wrapper .ant-table-tbody > tr {
       cursor: pointer;

+ 1 - 3
ai-electron/frontend/src/call/views/sensitive/index.vue

@@ -1223,9 +1223,7 @@
       font-size: 12px;
     }
 
-    .table-wrapper .ant-table-tbody > tr:last-child > td {
-      border-bottom: 0 !important;
-    }
+    /* 末行保留底边:表体撑满剩余高度,只有一条数据时去掉末行线会让表格"开口" */
 
     .table-wrapper .ant-table-tbody > tr {
       vertical-align: middle;

+ 1 - 3
ai-electron/frontend/src/trans/views/styles/analysis-card-ui.less

@@ -618,9 +618,7 @@
     font-size: 12px;
   }
 
-  .table-wrapper .ant-table-tbody > tr:last-child > td {
-    border-bottom: 0 !important;
-  }
+  /* 末行保留底边:表体是撑满剩余高度的滚动区,只有一条数据时去掉末行线会让表格"开口" */
 
   .table-wrapper .ant-table-tbody > tr > td,
   .table-wrapper .ant-table-thead > tr > th {