Browse Source

style: 修改拖拽指示器颜色

xyh 2 years ago
parent
commit
e6dcddbd93

+ 1 - 3
packages/app/src/components/table/header-th/index.tsx

@@ -55,9 +55,7 @@ const HeaderTh: FC<Props> = function ({header, useDiv}) {
       {...listeners}
       className={css.tableHeadTh}
     >
-      {header.isPlaceholder
-        ? null
-        : flexRender(header.column.columnDef.header, header.getContext())}
+      {flexRender(header.column.columnDef.header, header.getContext())}
 
       <div
         onMouseDown={header.getResizeHandler()}

+ 3 - 3
packages/app/src/components/table/index.module.css

@@ -75,16 +75,16 @@
   touch-action: none;
   cursor: col-resize;
   user-select: none;
-  background: rgb(0 0 0 / 50%);
+  background: var(--primary-color);
   opacity: 0;
 
   &:hover {
-    opacity: 1;
+    opacity: 0.4;
   }
 }
 
 .resizing {
-  opacity: 1;
+  opacity: 0.4;
 }
 
 .sticky {