Skip to content

Commit 945b4dd

Browse files
Weapons.astro: align weapon images
1 parent 8414e4e commit 945b4dd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

web/src/pages/reference/ID_Lists/Weapons.astro

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ const weapons = [{'slot': 0, 'type': 'Hand', 'name': 'Fist', 'id': 0, 'modelId':
4646
<td>{weapon.slot}
4747
{weapon.sharingAmmoSlot && <span class="color-special">*</span>}</td>
4848
<td>{weapon.type}</td>
49-
<td class="weapon-image-container">
49+
<td>
50+
<div class="weapon-image-container">
5051
<Image src={getAssetImagePath("Weapons/" + weapon.id + ".png")} alt={weapon.name}
5152
class="weapon-image" />
53+
</div>
5254
</td>
5355
<td><code>{weapon.name}</code></td>
5456
<td><code>{weapon.id}</code></td>
@@ -103,11 +105,13 @@ local weaponIDsBySlot = {
103105
}
104106
.weapon-image-container {
105107
background-color: rgba(255, 255, 255, 1);
106-
border-radius: 10px;
108+
border-radius: 6px;
109+
padding: 6px;
107110
margin: 0 auto;
108111
}
109112
.weapon-image {
110113
max-width: 50px;
114+
margin: 0 auto;
111115
}
112116
.color-special {
113117
color: red;

0 commit comments

Comments
 (0)