mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: more responsive
This commit is contained in:
1 parent
46c86c5352
commit
c1000e1608
5 files changed
+37
-13
No files matched your search
+1
@@ -25,6 +25,7 @@ export function RicochetVisualizer({ stats }: StatsAcceptorProps) {
|
|||||||
variant="classic"
|
variant="classic"
|
||||||
style={{
|
style={{
|
||||||
aspectRatio: '1 / 1',
|
aspectRatio: '1 / 1',
|
||||||
|
touchAction: 'none',
|
||||||
}}
|
}}
|
||||||
mb="6"
|
mb="6"
|
||||||
ref={container}
|
ref={container}
|
||||||
|
|||||||
+2
-1
@@ -5,7 +5,8 @@ export function StatsTableWrapper(props: FlexProps) {
|
|||||||
<Flex
|
<Flex
|
||||||
direction="column"
|
direction="column"
|
||||||
gap="2"
|
gap="2"
|
||||||
width={{ initial: '16rem', xs: '20rem', md: '16rem', xl: '20rem' }}
|
maxWidth="25rem"
|
||||||
|
width={{ initial: '100%', md: '16rem', xl: '20rem' }}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
+10
-8
@@ -31,7 +31,11 @@ export function ViewRangeVisualizer({ stats }: StatsAcceptorProps) {
|
|||||||
const range = useRef<HTMLDivElement>(null);
|
const range = useRef<HTMLDivElement>(null);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card style={{ aspectRatio: '1 / 1' }} mb="6" variant="classic">
|
<Card
|
||||||
|
style={{ aspectRatio: '1 / 1', touchAction: 'none' }}
|
||||||
|
mb="6"
|
||||||
|
variant="classic"
|
||||||
|
>
|
||||||
<Box
|
<Box
|
||||||
ref={container}
|
ref={container}
|
||||||
onPointerMove={(event) => {
|
onPointerMove={(event) => {
|
||||||
@@ -47,11 +51,6 @@ export function ViewRangeVisualizer({ stats }: StatsAcceptorProps) {
|
|||||||
left="0"
|
left="0"
|
||||||
width="100%"
|
width="100%"
|
||||||
height="100%"
|
height="100%"
|
||||||
style={{
|
|
||||||
backgroundImage: `url(/assets/images/tankopedia/visualizers/range/${map.id}.png)`,
|
|
||||||
backgroundSize: 'cover',
|
|
||||||
backgroundPosition: 'center',
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
position="absolute"
|
position="absolute"
|
||||||
@@ -60,7 +59,10 @@ export function ViewRangeVisualizer({ stats }: StatsAcceptorProps) {
|
|||||||
width="100%"
|
width="100%"
|
||||||
height="100%"
|
height="100%"
|
||||||
style={{
|
style={{
|
||||||
background: Var('black-a5'),
|
backgroundImage: `url(/assets/images/tankopedia/visualizers/range/${map.id}.png)`,
|
||||||
|
filter: `grayscale(0.5) brightness(0.8) contrast(1.2)`,
|
||||||
|
backgroundSize: 'cover',
|
||||||
|
backgroundPosition: 'center',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -75,7 +77,7 @@ export function ViewRangeVisualizer({ stats }: StatsAcceptorProps) {
|
|||||||
style={{
|
style={{
|
||||||
aspectRatio: '1 / 1',
|
aspectRatio: '1 / 1',
|
||||||
transform: 'translate(-50%, -50%)',
|
transform: 'translate(-50%, -50%)',
|
||||||
background: `radial-gradient(${Var('gray-a1')}, ${Var('gray-a12')})`,
|
background: `radial-gradient(${Var('black-a6')}, ${Var('gray-a12')})`,
|
||||||
borderRadius: '50%',
|
borderRadius: '50%',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
+18
-3
@@ -83,13 +83,28 @@ export function Characteristics() {
|
|||||||
}, [hasImprovedVerticalStabilizer, hasDownImprovedVerticalStabilizer]);
|
}, [hasImprovedVerticalStabilizer, hasDownImprovedVerticalStabilizer]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex gap="8" direction={{ initial: 'column', md: 'row' }}>
|
<Flex
|
||||||
|
gap="8"
|
||||||
|
direction={{ initial: 'column', md: 'row' }}
|
||||||
|
align={{ initial: 'center', sm: 'start' }}
|
||||||
|
width={{ initial: '100%', sm: 'auto' }}
|
||||||
|
>
|
||||||
<Firepower stats={stats} />
|
<Firepower stats={stats} />
|
||||||
|
|
||||||
<Flex gap="8" direction={{ initial: 'column', lg: 'row' }}>
|
<Flex
|
||||||
|
gap="8"
|
||||||
|
direction={{ initial: 'column', lg: 'row' }}
|
||||||
|
align={{ initial: 'center', sm: 'start' }}
|
||||||
|
width={{ initial: '100%', sm: 'auto' }}
|
||||||
|
>
|
||||||
<Maneuverability stats={stats} />
|
<Maneuverability stats={stats} />
|
||||||
|
|
||||||
<Flex gap="8" direction="column">
|
<Flex
|
||||||
|
gap="8"
|
||||||
|
direction="column"
|
||||||
|
align={{ initial: 'center', sm: 'start' }}
|
||||||
|
width={{ initial: '100%', sm: 'auto' }}
|
||||||
|
>
|
||||||
<Survivability stats={stats} />
|
<Survivability stats={stats} />
|
||||||
<Crew stats={stats} />
|
<Crew stats={stats} />
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|||||||
@@ -35,7 +35,12 @@ export function CharacteristicsSection() {
|
|||||||
<Miscellaneous />
|
<Miscellaneous />
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
<Flex direction="column" gap="6" align="center">
|
<Flex
|
||||||
|
direction="column"
|
||||||
|
gap="6"
|
||||||
|
align={{ initial: 'stretch', sm: 'center' }}
|
||||||
|
width={{ initial: '100%', sm: 'auto' }}
|
||||||
|
>
|
||||||
<CompareOptions display={{ initial: 'flex', sm: 'none' }} />
|
<CompareOptions display={{ initial: 'flex', sm: 'none' }} />
|
||||||
<Characteristics />
|
<Characteristics />
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|||||||
Reference in new issue
Block a user