Skip to content

Commit

Permalink
Add content reporting features.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: f2e966ea7409d9df454ddc35c2a3b3d46cc8c17f
  • Loading branch information
cpojer committed Nov 11, 2024
1 parent 5467ab8 commit 0238f02
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions hera/ui/MapDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { isValidTimer } from '@deities/apollo/lib/GameTimerValue.tsx';
import getUserRoute from '@deities/apollo/routes/getUserRoute.tsx';
import getMapSize from '@deities/athena/lib/getMapSize.tsx';
import MapData from '@deities/athena/MapData.tsx';
import Breakpoints from '@deities/ui/Breakpoints.tsx';
import clipBorder from '@deities/ui/clipBorder.tsx';
import { applyVar } from '@deities/ui/cssVar.tsx';
import Icon from '@deities/ui/Icon.tsx';
import NoSkill from '@deities/ui/icons/NoSkill.tsx';
import Size from '@deities/ui/icons/Size.tsx';
import Skills from '@deities/ui/icons/Skills.tsx';
import pixelBorder from '@deities/ui/pixelBorder.tsx';
import Stack from '@deities/ui/Stack.tsx';
import Tag from '@deities/ui/Tag.tsx';
import TagList from '@deities/ui/TagList.tsx';
Expand Down Expand Up @@ -72,7 +72,7 @@ export default function MapDetails({
}: MapDetailsProps) {
const { initialCharge, seedCapital } = map.config;
return map ? (
<Stack className={contentStyle} gap={24} vertical>
<Stack gap={16} stretch vertical>
<Stack gap={16} vertical>
{creator &&
!SpecialUsers.has(creator.id) &&
Expand Down Expand Up @@ -194,24 +194,14 @@ export default function MapDetails({
)}
</Stack>
{buttons && (
<Stack
alignCenter
className={cx(containerStyle, buttonStyle)}
gap={24}
start
>
<Stack alignCenter className={buttonStyle} gap={24} start>
{buttons}
</Stack>
)}
</Stack>
) : null;
}

const contentStyle = css`
height: 100%;
justify-content: space-between;
`;

const containerStyle = css`
backdrop-filter: blur(8px);
background-color: ${applyVar('background-color-light')};
Expand All @@ -229,7 +219,11 @@ const iconOffsetStyle = css`
`;

const buttonStyle = css`
${pixelBorder(applyVar('background-color-light'), 2)}
${Breakpoints.sm} {
max-width: 240px;
}
padding: 2px 2px 0;
${Breakpoints.lg} {
max-width: unset;
}
`;

0 comments on commit 0238f02

Please sign in to comment.