renable tabs

This commit is contained in:
tresabhi committed 2026-10-29 14:25:55 -05:00
1 parent f81f972787
commit 1aa4e6c470
3 files changed
+14 -27

No files matched your search

@@ -10,7 +10,7 @@
left: 50%; left: 50%;
bottom: var(--space-4); bottom: var(--space-4);
transform: translate(-50%, calc(100% + var(--space-4))); transform: translate(-50%, calc(100% + var(--space-4) + var(--space-1)));
&[data-visible="true"] { &[data-visible="true"] {
transform: translate(-50%, 0); transform: translate(-50%, 0);
@@ -1,13 +1,7 @@
import { uniqueGuns } from "@blitzkit/core"; import { uniqueGuns } from "@blitzkit/core";
import { import { Crosshair1Icon } from "@radix-ui/react-icons";
Crosshair1Icon, import { Dialog, Tabs } from "radix-ui";
EnterFullScreenIcon, import { useState } from "react";
ExitFullScreenIcon,
ShadowInnerIcon,
ShadowNoneIcon,
SunIcon,
} from "@radix-ui/react-icons";
import { useState, type RefObject } from "react";
import { DuelModule, useDuel } from "../../hooks/useDuel"; import { DuelModule, useDuel } from "../../hooks/useDuel";
import { useEquipment } from "../../hooks/useEquipment"; import { useEquipment } from "../../hooks/useEquipment";
import { useFullScreen } from "../../hooks/useFullScreen"; import { useFullScreen } from "../../hooks/useFullScreen";
@@ -17,21 +11,13 @@ import { useUnwrapper } from "../../hooks/useUnwrapper";
import { Tankopedia } from "../../stores/tankopedia"; import { Tankopedia } from "../../stores/tankopedia";
import { TankopediaPersistent } from "../../stores/tankopediaPersistent"; import { TankopediaPersistent } from "../../stores/tankopediaPersistent";
import { TankopediaDisplay } from "../../stores/tankopediaPersistent/constants"; import { TankopediaDisplay } from "../../stores/tankopediaPersistent/constants";
import type { MaybeSkeletonComponentProps } from "../../types/maybeSkeletonComponentProps";
import { IconButton } from "../IconButton";
import { ScreenshotButton } from "../ScreenshotButton";
import { SegmentedControl } from "../SegmentedControl";
import styles from "./index.module.css";
import { Dialog, Tabs } from "radix-ui";
import { Button } from "../Button"; import { Button } from "../Button";
import { SegmentedControl } from "../SegmentedControl";
import { SmallTankIcon } from "../SmallTankIcon"; import { SmallTankIcon } from "../SmallTankIcon";
import { TankSearch } from "../TankSearch"; import { TankSearch } from "../TankSearch";
import styles from "./index.module.css";
type OptionsProps = MaybeSkeletonComponentProps & { export function TankopediaOptions() {
canvas: RefObject<HTMLCanvasElement>;
};
export function TankopediaOptions({ canvas, skeleton }: OptionsProps) {
const strings = useStrings(); const strings = useStrings();
const unwrap = useUnwrapper(); const unwrap = useUnwrapper();
@@ -60,8 +46,8 @@ export function TankopediaOptions({ canvas, skeleton }: OptionsProps) {
const equalize = Tankopedia.use((state) => state.environment.equalize); const equalize = Tankopedia.use((state) => state.environment.equalize);
return ( return (
<div className={styles.options}> <div className={styles.options} data-visible={revealed}>
<div className={styles.controls}> {/* <div className={styles.controls}>
{disturbed && ( {disturbed && (
<> <>
{requestedDisplay === TankopediaDisplay.DynamicArmor && ( {requestedDisplay === TankopediaDisplay.DynamicArmor && (
@@ -84,7 +70,7 @@ export function TankopediaOptions({ canvas, skeleton }: OptionsProps) {
</IconButton> </IconButton>
)} )}
{/* <DropdownMenu.Root> <DropdownMenu.Root>
<DropdownMenu.Trigger> <DropdownMenu.Trigger>
<IconButton <IconButton
size="2" size="2"
@@ -111,7 +97,7 @@ export function TankopediaOptions({ canvas, skeleton }: OptionsProps) {
{strings.tanks.poses.default} {strings.tanks.poses.default}
</DropdownMenu.Item> </DropdownMenu.Item>
</DropdownMenu.Content> </DropdownMenu.Content>
</DropdownMenu.Root> */} </DropdownMenu.Root>
<IconButton <IconButton
size="2" size="2"
@@ -157,7 +143,7 @@ export function TankopediaOptions({ canvas, skeleton }: OptionsProps) {
)} )}
</> </>
)} )}
</div> </div> */}
<div gap="3" align="center" mt="2"> <div gap="3" align="center" mt="2">
<SegmentedControl <SegmentedControl
@@ -23,6 +23,7 @@ import { SmartCanvas } from "../SmartCanvas";
import { StaticArmor, type ThicknessRange } from "../StaticArmor"; import { StaticArmor, type ThicknessRange } from "../StaticArmor";
import { TankModel } from "../TankModel"; import { TankModel } from "../TankModel";
import { TankopediaAntagonistControl } from "../TankopediaAntagonistControl"; import { TankopediaAntagonistControl } from "../TankopediaAntagonistControl";
import { TankopediaOptions } from "../TankopediaOptions";
import { TankopediaSkinSwitcher } from "../TankopediaSkinSwitcher"; import { TankopediaSkinSwitcher } from "../TankopediaSkinSwitcher";
import { TankSandboxLoader } from "../TankSandboxLoader"; import { TankSandboxLoader } from "../TankSandboxLoader";
import styles from "./index.module.css"; import styles from "./index.module.css";
@@ -178,7 +179,7 @@ export function TankopediaSandbox({
<TankopediaAntagonistControl <TankopediaAntagonistControl
antagonistCharacteristics={antagonistCharacteristics} antagonistCharacteristics={antagonistCharacteristics}
/> />
{/* <TankopediaOptions /> */} <TankopediaOptions />
</div> </div>
); );
} }