mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
fix: better performance titles
This commit is contained in:
1 parent
d9958558b5
commit
b45ec7ae9e
1 file changed
+6
-7
@@ -3,7 +3,7 @@ import {
|
||||
CaretSortIcon,
|
||||
CaretUpIcon,
|
||||
} from '@radix-ui/react-icons';
|
||||
import { Flex, IconButton, Table } from '@radix-ui/themes';
|
||||
import { Button, Flex, Table } from '@radix-ui/themes';
|
||||
import { TankPerformanceSort } from '../../stores/tankPerformanceSort';
|
||||
import {
|
||||
TankPerformanceSortTypeNames,
|
||||
@@ -30,11 +30,8 @@ export function Header() {
|
||||
justify="center"
|
||||
>
|
||||
<Flex align="center" gap="1">
|
||||
{TankPerformanceSortTypeNames[type]}
|
||||
|
||||
<IconButton
|
||||
size={isSelected ? '1' : '2'}
|
||||
variant={isSelected ? 'soft' : 'ghost'}
|
||||
<Button
|
||||
variant="ghost"
|
||||
color={isSelected ? undefined : 'gray'}
|
||||
highContrast={!isSelected}
|
||||
onClick={() => {
|
||||
@@ -45,6 +42,8 @@ export function Header() {
|
||||
}
|
||||
}}
|
||||
>
|
||||
{TankPerformanceSortTypeNames[type]}
|
||||
|
||||
{!isSelected && <CaretSortIcon />}
|
||||
{isSelected && (
|
||||
<>
|
||||
@@ -52,7 +51,7 @@ export function Header() {
|
||||
{sort.direction === -1 && <CaretDownIcon />}
|
||||
</>
|
||||
)}
|
||||
</IconButton>
|
||||
</Button>
|
||||
</Flex>
|
||||
</StickyColumnHeaderCell>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user