mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
feat: add gaps
This commit is contained in:
1 parent
ef91eadaea
commit
53d811eeef
1 file changed
+8
-6
@@ -1,4 +1,5 @@
|
|||||||
import type { TankDefinition } from '@blitzkit/core';
|
import type { TankDefinition } from '@blitzkit/core';
|
||||||
|
import { Box } from '@radix-ui/themes';
|
||||||
import {
|
import {
|
||||||
useCallback,
|
useCallback,
|
||||||
useEffect,
|
useEffect,
|
||||||
@@ -162,14 +163,15 @@ export function TierListTile(props: TierListTileProps) {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TankCard
|
<Box
|
||||||
|
p="2"
|
||||||
|
ref={card}
|
||||||
data-tile-index={props.isPlaced ? props.tileIndex : undefined}
|
data-tile-index={props.isPlaced ? props.tileIndex : undefined}
|
||||||
data-tile-id={props.tank.id}
|
data-tile-id={props.tank.id}
|
||||||
ref={card}
|
|
||||||
noLink
|
|
||||||
tank={props.tank}
|
|
||||||
style={{ cursor: 'grab', touchAction: 'none' }}
|
|
||||||
onPointerDown={handlePointerDown}
|
onPointerDown={handlePointerDown}
|
||||||
/>
|
style={{ cursor: 'grab', touchAction: 'none' }}
|
||||||
|
>
|
||||||
|
<TankCard noLink tank={props.tank} />
|
||||||
|
</Box>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user