From 158ceca599eec71efc74d555d6b2489379001eba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sat, 27 Jan 2024 18:01:51 -0600 Subject: [PATCH] feat: small screen compatibility --- .../[id]/components/Characteristics/index.tsx | 8 ++------ src/app/tools/tankopedia/[id]/page.tsx | 10 +++++++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx b/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx index 53be76097..22a41ecb7 100644 --- a/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx +++ b/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx @@ -9,7 +9,7 @@ import { Provisions } from './components/Provisions'; export function Characteristics() { return ( - + Configure @@ -60,11 +60,7 @@ export function Characteristics() { - + state.assigned); + const wideFormat = typeof window !== 'undefined' && window.innerWidth > 880; useEffect(() => { mutateDuel((draft) => { @@ -87,7 +88,7 @@ export default function Page({ params }: { params: { id: string } }) { @@ -96,7 +97,8 @@ export default function Page({ params }: { params: { id: string } }) { direction="column" style={{ flex: 1, - position: 'sticky', + position: wideFormat ? 'sticky' : undefined, + width: '100%', top: 64, }} > @@ -104,7 +106,9 @@ export default function Page({ params }: { params: { id: string } }) { - + + + )}