update th

This commit is contained in:
Nate Kelley 2025-04-17 10:33:14 -06:00
parent a6d2041126
commit 728a2cdc08
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
3 changed files with 9 additions and 4 deletions

View File

@ -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 && (
<> <>

View File

@ -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>
); );

View File

@ -45,3 +45,7 @@ body {
p { p {
@apply leading-1.5; @apply leading-1.5;
} }
th {
@apply text-base font-normal;
}