mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
aliases
This commit is contained in:
1 parent
13cda7aec0
commit
b26c5137f3
53 files changed
+236
-932
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import { alias } from "@blitzkit/core";
|
||||
|
||||
interface SmallTankIconProps {
|
||||
id: number;
|
||||
size?: number;
|
||||
@@ -17,7 +19,7 @@ export function SmallTankIcon({ id, size = HEIGHT }: SmallTankIconProps) {
|
||||
>
|
||||
<img
|
||||
alt={`Tank ${id}`}
|
||||
src={`/api/tanks/${id}/icons/small.webp`}
|
||||
src={alias("api", `/tanks/${id}/icons/small.webp`)}
|
||||
style={{
|
||||
transform: `scale(${(size / HEIGHT) * 100}%)`,
|
||||
transformOrigin: "top left",
|
||||
|
||||
Reference in new issue
Block a user