mirror of https://github.com/buster-so/buster.git
update th
This commit is contained in:
parent
a6d2041126
commit
728a2cdc08
|
@ -7,6 +7,7 @@ import { CaretDown, CaretUp } from '../../../icons/NucleoIconFilled';
|
||||||
import { HEADER_HEIGHT } from './constants';
|
import { HEADER_HEIGHT } from './constants';
|
||||||
import { useSortColumnContext } from './SortColumnWrapper';
|
import { useSortColumnContext } from './SortColumnWrapper';
|
||||||
import { Virtualizer } from '@tanstack/react-virtual';
|
import { Virtualizer } from '@tanstack/react-virtual';
|
||||||
|
import { Text } from '@/components/ui/typography';
|
||||||
|
|
||||||
interface DraggableHeaderProps {
|
interface DraggableHeaderProps {
|
||||||
header: Header<Record<string, string | number | Date | null>, unknown>;
|
header: Header<Record<string, string | number | Date | null>, unknown>;
|
||||||
|
@ -65,15 +66,15 @@ const DraggableHeader: React.FC<DraggableHeaderProps> = ({
|
||||||
onClick={header.column.getCanSort() ? header.column.getToggleSortingHandler() : undefined}>
|
onClick={header.column.getCanSort() ? header.column.getToggleSortingHandler() : undefined}>
|
||||||
<span
|
<span
|
||||||
className={cn(
|
className={cn(
|
||||||
'flex h-full flex-1 items-center space-x-1.5 p-2',
|
'flex h-full flex-1 items-center space-x-1.5 overflow-hidden p-2',
|
||||||
draggable && 'cursor-grab'
|
draggable && 'cursor-grab'
|
||||||
)}
|
)}
|
||||||
ref={draggable ? setDragNodeRef : undefined}
|
ref={draggable ? setDragNodeRef : undefined}
|
||||||
{...attributes}
|
{...attributes}
|
||||||
{...listeners}>
|
{...listeners}>
|
||||||
<span className="text-gray-dark text-base font-normal">
|
<Text variant={'secondary'} truncate>
|
||||||
{flexRender(header.column.columnDef.header, header.getContext())}
|
{flexRender(header.column.columnDef.header, header.getContext())}
|
||||||
</span>
|
</Text>
|
||||||
|
|
||||||
{sortable && (
|
{sortable && (
|
||||||
<>
|
<>
|
||||||
|
|
|
@ -46,7 +46,7 @@ export const VersionHistoryHeaderButtons: React.FC<{}> = React.memo(({}) => {
|
||||||
disabled={isSelectedVersionCurrent || !currentVersion}
|
disabled={isSelectedVersionCurrent || !currentVersion}
|
||||||
onClick={onClickRestoreVersionPreflight}
|
onClick={onClickRestoreVersionPreflight}
|
||||||
loading={isRestoringVersion}>
|
loading={isRestoringVersion}>
|
||||||
Restore version {restoringVersion}
|
Restore version
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -45,3 +45,7 @@ body {
|
||||||
p {
|
p {
|
||||||
@apply leading-1.5;
|
@apply leading-1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
@apply text-base font-normal;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue