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>
);
}
@@ -10,7 +10,6 @@ import { GameModeSection } from '../../../../components/Tankopedia/GameModeSecti
import { HeroSection } from '../../../../components/Tankopedia/HeroSection';
import { HistorySection } from '../../../../components/Tankopedia/HistorySection';
import { MetaSection } from '../../../../components/Tankopedia/MetaSection';
import { ShotDisplaySection } from '../../../../components/Tankopedia/ShotDisplaySection';
import { TechTreeSection } from '../../../../components/Tankopedia/TechTreeSection';
import { VideoSection } from '../../../../components/Tankopedia/VideoSection';
import { App } from '../../../../stores/app';
@@ -47,7 +46,6 @@ export function Page({ id, skeleton }: PageProps) {
pb="9"
>
<HeroSection skeleton={skeleton} />
<ShotDisplaySection />
<CalloutsSection />
<MetaSection />
<TechTreeSection skeleton={skeleton} />