diff --git a/web/src/components/ui/list/BusterList/BusterListHeader.tsx b/web/src/components/ui/list/BusterList/BusterListHeader.tsx index 7ad749556..4e1e395e4 100644 --- a/web/src/components/ui/list/BusterList/BusterListHeader.tsx +++ b/web/src/components/ui/list/BusterList/BusterListHeader.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { BusterListColumn } from './interfaces'; import { CheckboxColumn } from './CheckboxColumn'; import { Text } from '@/components/ui'; -import { createStyles } from 'antd-style'; +import { cn } from '@/lib/classMerge'; import { HEIGHT_OF_HEADER } from './config'; export const BusterListHeader: React.FC<{ @@ -21,21 +21,28 @@ export const BusterListHeader: React.FC<{ globalCheckStatus, rowsLength }) => { - const { styles, cx } = useStyles(); const showCheckboxColumn = !!onGlobalSelectChange; const showGlobalCheckbox = globalCheckStatus === 'indeterminate' || globalCheckStatus === 'checked'; return (
+ className={cn( + 'group border-border flex items-center justify-start border-b pr-6', + { + 'pl-3.5': !onGlobalSelectChange + }, + rowClassName + )} + style={{ + height: `${HEIGHT_OF_HEADER}px`, + minHeight: `${HEIGHT_OF_HEADER}px` + }}> {showCheckboxColumn && ( (
({ - header: css` - height: ${HEIGHT_OF_HEADER}px; - min-height: ${HEIGHT_OF_HEADER}px; - display: flex; - align-items: center; - justify-content: flex-start; - - border-bottom: 0.5px solid ${token.colorBorder}; - - .header-cell { - padding: 0 0px; - height: 100%; - - // &:first-child { - // padding-left: 18px; - // } - } - ` -})); diff --git a/web/src/components/ui/list/BusterList/BusterListVirtua.tsx b/web/src/components/ui/list/BusterList/BusterListVirtua.tsx index a9432472a..91e4ba680 100644 --- a/web/src/components/ui/list/BusterList/BusterListVirtua.tsx +++ b/web/src/components/ui/list/BusterList/BusterListVirtua.tsx @@ -1,3 +1,5 @@ +'use client'; + import { VList } from 'virtua'; import React, { useEffect, useMemo, useRef } from 'react'; import { BusterListProps } from './interfaces';