mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: image alts
This commit is contained in:
1 parent
ab510361b5
commit
97cd218796
25 files changed
+58
-4
No files matched your search
@@ -815,6 +815,7 @@ export default function Page() {
|
|||||||
] as const
|
] as const
|
||||||
).map((module, index) => (
|
).map((module, index) => (
|
||||||
<img
|
<img
|
||||||
|
alt={module}
|
||||||
width={24}
|
width={24}
|
||||||
height={24}
|
height={24}
|
||||||
src={asset(
|
src={asset(
|
||||||
@@ -901,6 +902,10 @@ export default function Page() {
|
|||||||
<Flex direction="column" justify="center">
|
<Flex direction="column" justify="center">
|
||||||
{provisions.map((provision, index) => (
|
{provisions.map((provision, index) => (
|
||||||
<img
|
<img
|
||||||
|
alt={
|
||||||
|
awaitedProvisionDefinitions[provision]
|
||||||
|
.name
|
||||||
|
}
|
||||||
key={provision}
|
key={provision}
|
||||||
src={asset(
|
src={asset(
|
||||||
`/icons/provisions/${provision}.webp`,
|
`/icons/provisions/${provision}.webp`,
|
||||||
@@ -1089,6 +1094,11 @@ export default function Page() {
|
|||||||
<Flex direction="column" justify="center">
|
<Flex direction="column" justify="center">
|
||||||
{consumables.map((consumable, index) => (
|
{consumables.map((consumable, index) => (
|
||||||
<img
|
<img
|
||||||
|
alt={
|
||||||
|
awaitedConsumableDefinitions[
|
||||||
|
consumable
|
||||||
|
].name
|
||||||
|
}
|
||||||
key={consumable}
|
key={consumable}
|
||||||
src={asset(
|
src={asset(
|
||||||
`/icons/consumables/${consumable}.webp`,
|
`/icons/consumables/${consumable}.webp`,
|
||||||
@@ -1186,6 +1196,7 @@ export default function Page() {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt={thisShell.name}
|
||||||
width={16}
|
width={16}
|
||||||
height={16}
|
height={16}
|
||||||
src={asset(
|
src={asset(
|
||||||
|
|||||||
@@ -435,6 +435,7 @@ export default function Page() {
|
|||||||
>
|
>
|
||||||
<Link href={`/tools/tankopedia/${tank.id}`}>
|
<Link href={`/tools/tankopedia/${tank.id}`}>
|
||||||
<img
|
<img
|
||||||
|
alt={tank.name}
|
||||||
draggable={false}
|
draggable={false}
|
||||||
src={tankIcon(tank.id)}
|
src={tankIcon(tank.id)}
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ export function Day({ offset }: DayProps) {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt="Tank icon"
|
||||||
draggable={false}
|
draggable={false}
|
||||||
src={tankIcon(tank.id)}
|
src={tankIcon(tank.id)}
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ function ModuleButton({
|
|||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<img
|
<img
|
||||||
|
alt={unlock.cost.type}
|
||||||
src={asset(`icons/currencies/${unlock.cost.type}.webp`)}
|
src={asset(`icons/currencies/${unlock.cost.type}.webp`)}
|
||||||
style={{
|
style={{
|
||||||
width: 12,
|
width: 12,
|
||||||
@@ -86,6 +87,7 @@ function ModuleButton({
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
<img
|
<img
|
||||||
|
alt={unlock.type}
|
||||||
src={
|
src={
|
||||||
unlock.type === 'vehicle'
|
unlock.type === 'vehicle'
|
||||||
? tankIcon(unlock.id)
|
? tankIcon(unlock.id)
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ export function Characteristics() {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt={thisShell.name}
|
||||||
width={16}
|
width={16}
|
||||||
height={16}
|
height={16}
|
||||||
src={asset(`icons/shells/${thisShell.icon}.webp`)}
|
src={asset(`icons/shells/${thisShell.icon}.webp`)}
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ export function TechTreeSection() {
|
|||||||
>
|
>
|
||||||
<Flex direction="column" align="center">
|
<Flex direction="column" align="center">
|
||||||
<img
|
<img
|
||||||
|
alt={ancestor.name}
|
||||||
src={asset(`icons/tanks/big/${id}.webp`)}
|
src={asset(`icons/tanks/big/${id}.webp`)}
|
||||||
width={64}
|
width={64}
|
||||||
height={64}
|
height={64}
|
||||||
@@ -88,6 +89,7 @@ export function TechTreeSection() {
|
|||||||
<Flex gap="2" align="center">
|
<Flex gap="2" align="center">
|
||||||
<Flex gap="1" align="center">
|
<Flex gap="1" align="center">
|
||||||
<img
|
<img
|
||||||
|
alt="XP"
|
||||||
src={asset('icons/currencies/xp.webp')}
|
src={asset('icons/currencies/xp.webp')}
|
||||||
width={16}
|
width={16}
|
||||||
height={16}
|
height={16}
|
||||||
@@ -102,6 +104,7 @@ export function TechTreeSection() {
|
|||||||
|
|
||||||
<Flex gap="1" align="center">
|
<Flex gap="1" align="center">
|
||||||
<img
|
<img
|
||||||
|
alt="Silver"
|
||||||
src={asset('icons/currencies/silver.webp')}
|
src={asset('icons/currencies/silver.webp')}
|
||||||
width={16}
|
width={16}
|
||||||
height={16}
|
height={16}
|
||||||
@@ -136,6 +139,7 @@ export function TechTreeSection() {
|
|||||||
highlight
|
highlight
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt={tank.nation}
|
||||||
src={asset(`flags/scratched/${tank.nation}.webp`)}
|
src={asset(`flags/scratched/${tank.nation}.webp`)}
|
||||||
style={{
|
style={{
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ export function Options() {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt={thisShell.name}
|
||||||
width={16}
|
width={16}
|
||||||
height={16}
|
height={16}
|
||||||
src={asset(`icons/shells/${thisShell.icon}.webp`)}
|
src={asset(`icons/shells/${thisShell.icon}.webp`)}
|
||||||
@@ -135,6 +136,7 @@ export function Options() {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt="Calibrated Shells"
|
||||||
width={16}
|
width={16}
|
||||||
height={16}
|
height={16}
|
||||||
src={asset('icons/equipment/103.webp')}
|
src={asset('icons/equipment/103.webp')}
|
||||||
@@ -157,6 +159,7 @@ export function Options() {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt="Enhanced Armor"
|
||||||
width={16}
|
width={16}
|
||||||
height={16}
|
height={16}
|
||||||
src={asset('icons/equipment/110.webp')}
|
src={asset('icons/equipment/110.webp')}
|
||||||
|
|||||||
+1
@@ -15,6 +15,7 @@ export function QuickEquipmentButton({
|
|||||||
return (
|
return (
|
||||||
<Button variant="ghost" {...props}>
|
<Button variant="ghost" {...props}>
|
||||||
<img
|
<img
|
||||||
|
alt={`Equipment ${equipment}`}
|
||||||
style={{ opacity: active ? 1 : 0.5 }}
|
style={{ opacity: active ? 1 : 0.5 }}
|
||||||
src={asset(`icons/equipment/${equipment}.webp`)}
|
src={asset(`icons/equipment/${equipment}.webp`)}
|
||||||
width={24}
|
width={24}
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ export function Title() {
|
|||||||
>
|
>
|
||||||
<Flex align="center" gap="2">
|
<Flex align="center" gap="2">
|
||||||
<img
|
<img
|
||||||
|
alt={protagonist.tank.name}
|
||||||
src={
|
src={
|
||||||
TREE_TYPE_ICONS[protagonist.tank.treeType][
|
TREE_TYPE_ICONS[protagonist.tank.treeType][
|
||||||
protagonist.tank.class
|
protagonist.tank.class
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Flex, Heading, Link, Separator } from '@radix-ui/themes';
|
import { Flex, Heading, Link } from '@radix-ui/themes';
|
||||||
import { use } from 'react';
|
import { use } from 'react';
|
||||||
import PageWrapper from '../../../../../components/PageWrapper';
|
import PageWrapper from '../../../../../components/PageWrapper';
|
||||||
import { videoDefinitions } from '../../../../../core/blitzkit/videos';
|
import { videoDefinitions } from '../../../../../core/blitzkit/videos';
|
||||||
@@ -15,8 +15,7 @@ export function Videos() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<PageWrapper>
|
<PageWrapper>
|
||||||
|
<Flex direction="column" gap="4" align="start">
|
||||||
<Flex direction="column" gap="4" mt="4" align="start">
|
|
||||||
<Heading size="6">Review videos</Heading>
|
<Heading size="6">Review videos</Heading>
|
||||||
|
|
||||||
<Flex gap="3" wrap="wrap">
|
<Flex gap="3" wrap="wrap">
|
||||||
@@ -27,6 +26,7 @@ export function Videos() {
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt="Video thumbnail"
|
||||||
src={`https://i.ytimg.com/vi/${video}/hqdefault.jpg`}
|
src={`https://i.ytimg.com/vi/${video}/hqdefault.jpg`}
|
||||||
style={{
|
style={{
|
||||||
aspectRatio: '16 / 9',
|
aspectRatio: '16 / 9',
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ export function Options() {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt={type}
|
||||||
src={TREE_TYPE_IMAGES[type]}
|
src={TREE_TYPE_IMAGES[type]}
|
||||||
style={{ width: '1em', height: '1em' }}
|
style={{ width: '1em', height: '1em' }}
|
||||||
/>
|
/>
|
||||||
@@ -124,6 +125,7 @@ export function Options() {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt={type}
|
||||||
src={TREE_TYPE_ICONS.researchable[type]}
|
src={TREE_TYPE_ICONS.researchable[type]}
|
||||||
style={{ width: '1em', height: '1em' }}
|
style={{ width: '1em', height: '1em' }}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -910,6 +910,7 @@ export function TankSearch({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt={tank.name}
|
||||||
className={styles.flag}
|
className={styles.flag}
|
||||||
src={asset(`flags/scratched/${tank.nation}.webp`)}
|
src={asset(`flags/scratched/${tank.nation}.webp`)}
|
||||||
style={{
|
style={{
|
||||||
@@ -938,6 +939,7 @@ export function TankSearch({
|
|||||||
className={styles.listingImage}
|
className={styles.listingImage}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt={tank.name}
|
||||||
src={tankIcon(tank.id)}
|
src={tankIcon(tank.id)}
|
||||||
style={{
|
style={{
|
||||||
objectFit: 'contain',
|
objectFit: 'contain',
|
||||||
@@ -960,6 +962,7 @@ export function TankSearch({
|
|||||||
>
|
>
|
||||||
<Flex align="center" justify="center" gap="1">
|
<Flex align="center" justify="center" gap="1">
|
||||||
<img
|
<img
|
||||||
|
alt={tank.name}
|
||||||
src={
|
src={
|
||||||
(tank.treeType === 'collector'
|
(tank.treeType === 'collector'
|
||||||
? TANK_ICONS_COLLECTOR
|
? TANK_ICONS_COLLECTOR
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ export const verifyCommand = new Promise<CommandRegistry>((resolve) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt="avatar"
|
||||||
src={
|
src={
|
||||||
interaction.user.avatarURL({ extension: 'png' }) ??
|
interaction.user.avatarURL({ extension: 'png' }) ??
|
||||||
'https://i.stack.imgur.com/l60Hf.png'
|
'https://i.stack.imgur.com/l60Hf.png'
|
||||||
@@ -139,6 +140,7 @@ export const verifyCommand = new Promise<CommandRegistry>((resolve) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt="accounts linked"
|
||||||
src="https://i.imgur.com/jIcRgog.png"
|
src="https://i.imgur.com/jIcRgog.png"
|
||||||
style={{
|
style={{
|
||||||
width: 16,
|
width: 16,
|
||||||
@@ -160,6 +162,7 @@ export const verifyCommand = new Promise<CommandRegistry>((resolve) => {
|
|||||||
>
|
>
|
||||||
{clanAccountInfo?.clan ? (
|
{clanAccountInfo?.clan ? (
|
||||||
<img
|
<img
|
||||||
|
alt="clan emblem"
|
||||||
style={{
|
style={{
|
||||||
width: 64,
|
width: 64,
|
||||||
height: 64,
|
height: 64,
|
||||||
|
|||||||
@@ -142,6 +142,7 @@ export const ratingCommand = new Promise<CommandRegistry>((resolve) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt={`League ${league.name}`}
|
||||||
style={{
|
style={{
|
||||||
width: 64,
|
width: 64,
|
||||||
height: 64,
|
height: 64,
|
||||||
|
|||||||
@@ -271,6 +271,7 @@ async function playerListing(
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt={tank.name}
|
||||||
src={await iconPng(tankIcon(tank.id))}
|
src={await iconPng(tankIcon(tank.id))}
|
||||||
style={{
|
style={{
|
||||||
width: 32,
|
width: 32,
|
||||||
|
|||||||
@@ -280,6 +280,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt="XP icon"
|
||||||
src={await iconPng(asset('icons/currencies/xp.webp'))}
|
src={await iconPng(asset('icons/currencies/xp.webp'))}
|
||||||
width={16}
|
width={16}
|
||||||
height={16}
|
height={16}
|
||||||
@@ -305,6 +306,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt="Silver icon"
|
||||||
src={await iconPng(asset('icons/currencies/silver.webp'))}
|
src={await iconPng(asset('icons/currencies/silver.webp'))}
|
||||||
width={16}
|
width={16}
|
||||||
height={16}
|
height={16}
|
||||||
@@ -330,6 +332,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt="Silver icon"
|
||||||
src={await iconPng(asset('icons/currencies/silver.webp'))}
|
src={await iconPng(asset('icons/currencies/silver.webp'))}
|
||||||
width={16}
|
width={16}
|
||||||
height={16}
|
height={16}
|
||||||
@@ -390,6 +393,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt="Tank icon"
|
||||||
src={await tankIconPng(id)}
|
src={await tankIconPng(id)}
|
||||||
style={{
|
style={{
|
||||||
height: 100,
|
height: 100,
|
||||||
@@ -414,6 +418,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt={tank.name}
|
||||||
src={TANK_ICONS[tank.class]}
|
src={TANK_ICONS[tank.class]}
|
||||||
width={16}
|
width={16}
|
||||||
height={16}
|
height={16}
|
||||||
@@ -447,6 +452,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt="XP icon"
|
||||||
src={await iconPng(asset('icons/currencies/xp.webp'))}
|
src={await iconPng(asset('icons/currencies/xp.webp'))}
|
||||||
width={16}
|
width={16}
|
||||||
height={16}
|
height={16}
|
||||||
@@ -474,6 +480,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt="Free XP icon"
|
||||||
src={await iconPng(
|
src={await iconPng(
|
||||||
asset('icons/currencies/free-xp.webp'),
|
asset('icons/currencies/free-xp.webp'),
|
||||||
)}
|
)}
|
||||||
@@ -501,6 +508,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt="Silver icon"
|
||||||
src={await iconPng(
|
src={await iconPng(
|
||||||
asset('icons/currencies/silver.webp'),
|
asset('icons/currencies/silver.webp'),
|
||||||
)}
|
)}
|
||||||
@@ -529,6 +537,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt="Silver icon"
|
||||||
src={await iconPng(
|
src={await iconPng(
|
||||||
asset('icons/currencies/silver.webp'),
|
asset('icons/currencies/silver.webp'),
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ export function Row({
|
|||||||
>
|
>
|
||||||
{type === 'tank' && tankType !== undefined && (
|
{type === 'tank' && tankType !== undefined && (
|
||||||
<img
|
<img
|
||||||
|
alt={tankType}
|
||||||
src={TREE_TYPE_ICONS[treeType ?? 'researchable'][tankType]}
|
src={TREE_TYPE_ICONS[treeType ?? 'researchable'][tankType]}
|
||||||
style={{ width: 16, height: 16 }}
|
style={{ width: 16, height: 16 }}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ export function RowStat({
|
|||||||
>
|
>
|
||||||
{percentile === undefined && delta !== undefined && delta !== 0 && (
|
{percentile === undefined && delta !== undefined && delta !== 0 && (
|
||||||
<img
|
<img
|
||||||
|
alt={delta > 0 ? 'Increase' : 'Decrease'}
|
||||||
src={
|
src={
|
||||||
(delta ?? 0) > 0
|
(delta ?? 0) > 0
|
||||||
? 'https://i.imgur.com/qbjiXa1.png'
|
? 'https://i.imgur.com/qbjiXa1.png'
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ interface DeltaCaretProps {
|
|||||||
export function DeltaCaret({ delta }: DeltaCaretProps) {
|
export function DeltaCaret({ delta }: DeltaCaretProps) {
|
||||||
return (
|
return (
|
||||||
<img
|
<img
|
||||||
|
alt={delta > 0 ? 'Increase' : 'Decrease'}
|
||||||
style={{
|
style={{
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export function Flag({ nation }: FlagProps) {
|
|||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img src={asset(`flags/circle/${nation}.webp`)} alt={nation} />
|
<img alt={nation} src={asset(`flags/circle/${nation}.webp`)} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -90,6 +90,7 @@ export function Item({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt={deltaPosition > 0 ? 'Increase' : 'Decrease'}
|
||||||
style={{
|
style={{
|
||||||
width: 8,
|
width: 8,
|
||||||
height: 8,
|
height: 8,
|
||||||
@@ -139,6 +140,7 @@ export function Item({
|
|||||||
)}
|
)}
|
||||||
{deltaScore !== 0 && deltaScore !== undefined && (
|
{deltaScore !== 0 && deltaScore !== undefined && (
|
||||||
<img
|
<img
|
||||||
|
alt={deltaScore > 0 ? 'Increase' : 'Decrease'}
|
||||||
style={{
|
style={{
|
||||||
width: 8,
|
width: 8,
|
||||||
height: 8,
|
height: 8,
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ export function GenericTankComponentButton({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt={icon}
|
||||||
draggable={false}
|
draggable={false}
|
||||||
src={icon}
|
src={icon}
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ export function SmallTankIcon({ id, size = HEIGHT }: SmallTankIconProps) {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
|
alt={`Tank ${id}`}
|
||||||
src={asset(`icons/tanks/small/${id}.webp`)}
|
src={asset(`icons/tanks/small/${id}.webp`)}
|
||||||
style={{
|
style={{
|
||||||
transform: `scale(${(size / HEIGHT) * 100}%)`,
|
transform: `scale(${(size / HEIGHT) * 100}%)`,
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ export function Item({ tankType, name, treeType }: ItemProps) {
|
|||||||
>
|
>
|
||||||
{tankType && (
|
{tankType && (
|
||||||
<img
|
<img
|
||||||
|
alt={tankType}
|
||||||
src={TREE_TYPE_ICONS[treeType][tankType]}
|
src={TREE_TYPE_ICONS[treeType][tankType]}
|
||||||
style={{ width: 14, height: 14 }}
|
style={{ width: 14, height: 14 }}
|
||||||
/>
|
/>
|
||||||
@@ -61,6 +62,7 @@ export function Item({ tankType, name, treeType }: ItemProps) {
|
|||||||
{/* {image && (
|
{/* {image && (
|
||||||
// TODO: remove hardcoded dimensions when satori fixes non-width unloadable images
|
// TODO: remove hardcoded dimensions when satori fixes non-width unloadable images
|
||||||
<img
|
<img
|
||||||
|
alt={name}
|
||||||
src={image}
|
src={image}
|
||||||
width={106}
|
width={106}
|
||||||
height={32}
|
height={32}
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ export default function TitleBar({ title, image, description }: TitleBarProps) {
|
|||||||
>
|
>
|
||||||
{image && (
|
{image && (
|
||||||
<img
|
<img
|
||||||
|
alt={title}
|
||||||
style={{ width: 32, height: 32, objectFit: 'contain' }}
|
style={{ width: 32, height: 32, objectFit: 'contain' }}
|
||||||
src={image}
|
src={image}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in new issue
Block a user