diff --git a/src/app/tools/tankopedia/[id]/components/Model/HeroSection.tsx b/src/app/tools/tankopedia/[id]/components/Model/HeroSection.tsx index fc6c6a155..1de00a426 100644 --- a/src/app/tools/tankopedia/[id]/components/Model/HeroSection.tsx +++ b/src/app/tools/tankopedia/[id]/components/Model/HeroSection.tsx @@ -25,7 +25,7 @@ export function HeroSection() { justify="center" pt={wideFormat ? '0' : '6'} style={{ - background: `linear-gradient(${wideFormat ? -90 : 180}deg, ${theme.colors.appBackground1}, ${theme.colors.appBackground2})`, + background: 'var(--color-surface)', position: 'relative', height: wideFormat ? undefined : 'calc(75vh - 64px)', }} diff --git a/src/app/tools/tankopedia/[id]/components/Model/TechTreeSection.tsx b/src/app/tools/tankopedia/[id]/components/Model/TechTreeSection.tsx index dde77504b..48349c6a4 100644 --- a/src/app/tools/tankopedia/[id]/components/Model/TechTreeSection.tsx +++ b/src/app/tools/tankopedia/[id]/components/Model/TechTreeSection.tsx @@ -133,11 +133,11 @@ export function TechTreeSection() { style: { overflow: 'hidden', marginTop: 16, + backgroundColor: 'var(--color-surface)', }, }} size={tank.ancestors && tank.successors ? 880 : 480} gap="0" - highlight > {/* Tech tree diff --git a/src/components/PageWrapper.tsx b/src/components/PageWrapper.tsx index 9c391cf38..680d0fd1e 100644 --- a/src/components/PageWrapper.tsx +++ b/src/components/PageWrapper.tsx @@ -1,13 +1,11 @@ import { Flex, FlexProps, Theme } from '@radix-ui/themes'; import { ComponentProps } from 'react'; -import { theme } from '../stitches.config'; type PageWrapperProps = FlexProps & { color?: ComponentProps['accentColor']; size?: number | string; noPadding?: boolean; noMaxWidth?: boolean; - highlight?: boolean; containerProps?: ComponentProps; noFlex1?: boolean; }; @@ -20,7 +18,6 @@ export default function PageWrapper({ noPadding = false, noMaxWidth = false, noFlex1 = false, - highlight = false, containerProps, ...props }: PageWrapperProps) { @@ -31,9 +28,6 @@ export default function PageWrapper({ flex: noFlex1 ? undefined : 1, display: 'flex', flexDirection: 'column', - background: highlight - ? `linear-gradient(-90deg, ${theme.colors.appBackground1}, ${theme.colors.appBackground2})` - : undefined, ...containerProps?.style, }} {...containerProps}