Переглянути джерело

chore: fix table header bg in connections

dongchengjie 11 місяців тому
батько
коміт
bb9a93e462
1 змінених файлів з 7 додано та 1 видалено
  1. 7 1
      src/components/connection/connection-table.tsx

+ 7 - 1
src/components/connection/connection-table.tsx

@@ -109,7 +109,13 @@ export const ConnectionTable = (props: Props) => {
       columns={columns}
       onRowClick={(e) => onShowDetail(e.row.connectionData)}
       density="compact"
-      sx={{ border: "none", "div:focus": { outline: "none !important" } }}
+      sx={{
+        border: "none",
+        "div:focus": { outline: "none !important" },
+        "& div[aria-rowindex='1']": {
+          backgroundColor: "inherit !important",
+        },
+      }}
       columnVisibilityModel={columnVisible}
       onColumnVisibilityModelChange={(e) => setColumnVisible(e)}
     />