fix: display shot card on all devices

This commit is contained in:
tresabhi committed 2024-11-10 22:38:36 -06:00
1 parent d5d0a8b308
commit b48515bf37
3 files changed
-18

No files matched your search

@@ -173,7 +173,6 @@ export function ShotDisplay() {
<Html position={inLast.point} center>
<Box
display={isFullscreen ? undefined : { initial: 'none', sm: 'block' }}
style={{
pointerEvents: 'none',
transform: `translateY(${tracerGoingUp ? 50 : -50}%)`,
@@ -1,15 +0,0 @@
import { Flex } from '@radix-ui/themes';
import { TankopediaEphemeral } from '../../stores/tankopediaEphemeral';
import { ShotDisplayCard } from '../Armor/components/ShotDisplayCard';
export function ShotDisplaySection() {
const shot = TankopediaEphemeral.use((state) => state.shot);
if (!shot) return null;
return (
<Flex justify="center" display={{ initial: 'flex', sm: 'none' }}>
<ShotDisplayCard shot={shot} />
</Flex>
);
}