Revert changes

This commit is contained in:
Mark Greene committed 2025-12-30 15:48:44 +13:00
1 parent 488857b7d8
commit 0bd660f255
2 files changed
+10 -10

No files matched your search

@@ -1,12 +1,12 @@
import type { HTMLAttributes } from "react"; import type { HTMLAttributes } from 'react';
import { import {
TankComponentButton, TankComponentButton,
type TankComponentButtonProps, type TankComponentButtonProps,
} from "./TankComponentButton"; } from './TankComponentButton';
interface GenericTankComponentButtonProps extends TankComponentButtonProps { interface GenericTankComponentButtonProps extends TankComponentButtonProps {
icon: string; icon: string;
iconStyles?: HTMLAttributes<HTMLImageElement>["style"]; iconStyles?: HTMLAttributes<HTMLImageElement>['style'];
} }
export function GenericTankComponentButton({ export function GenericTankComponentButton({
@@ -21,7 +21,7 @@ export function GenericTankComponentButton({
style={{ style={{
width: 48, width: 48,
height: 40, height: 40,
position: "relative", position: 'relative',
}} }}
> >
<img <img
@@ -29,14 +29,14 @@ export function GenericTankComponentButton({
draggable={false} draggable={false}
src={icon} src={icon}
style={{ style={{
objectFit: "contain", objectFit: 'contain',
width: 32, width: 32,
height: 32, height: 32,
position: "absolute", position: 'absolute',
opacity: props.disabled ? 0.5 : 1, opacity: props.disabled ? 0.5 : 1,
transform: "translate(-50%, -50%) scale(0.75)", transform: 'translate(-50%, -50%) scale(1)',
top: "50%", top: '50%',
left: "50%", left: '50%',
...iconStyles, ...iconStyles,
}} }}
/> />
@@ -394,7 +394,7 @@ export function Modules() {
</Button> </Button>
<Button <Button
variant="ghost" variant="ghost"
color="blue" color="purple"
onClick={() => { onClick={() => {
Duel.mutate((draft) => { Duel.mutate((draft) => {
// Random turret // Random turret