Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
fix: target overlay image style
Browse files Browse the repository at this point in the history
  • Loading branch information
claustra01 committed Aug 15, 2024
1 parent 70bcda3 commit aa032be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 6 additions & 1 deletion src/components/Yatai/TargetOverlay.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@
z-index: 1;
width: 100px;
height: 100px;
transform: translate(calc(-50%+50px), calc(-50%+50px));
}

.image {
width: 100%;
height: 100%;
}

4 changes: 1 addition & 3 deletions src/components/Yatai/TargetOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,12 @@ export const TargetOverlay = () => {
style={{
left: `${aim?.x}px`,
top: `${aim?.y}px`,
transform: "translate(-50%, -50%)",
}}
>
<img
src="/2D_material/target.webp"
alt="照準の表示"
width="100%"
height="100%"
className={styles.image}
/>
</div>
);
Expand Down

0 comments on commit aa032be

Please sign in to comment.