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 { useSortColumnContext } from './SortColumnWrapper';
import { Virtualizer } from '@tanstack/react-virtual';
import { Text } from '@/components/ui/typography';
interface DraggableHeaderProps {
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}>
<span
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'
)}
ref={draggable ? setDragNodeRef : undefined}
{...attributes}
{...listeners}>
<span className="text-gray-dark text-base font-normal">
<Text variant={'secondary'} truncate>
{flexRender(header.column.columnDef.header, header.getContext())}
</span>
</Text>
{sortable && (
<>

View File

@ -46,7 +46,7 @@ export const VersionHistoryHeaderButtons: React.FC<{}> = React.memo(({}) => {
disabled={isSelectedVersionCurrent || !currentVersion}
onClick={onClickRestoreVersionPreflight}
loading={isRestoringVersion}>
Restore version {restoringVersion}
Restore version
</Button>
</div>
);

View File

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