Tighten item icon viewBoxes so art fills the slot

Each icon's viewBox is set to a square box around its actual content
(with a stroke-width margin + small breathing room), leaving the path
data unchanged. Under-filled icons (ingots, plates, silicon, etc.) now
scale up and recenter to fill the half-tile item slot; already-full
icons are left as-is (clamped to only ever zoom in). Fixes items looking
too small in the game world.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y7N59FsLA5e2kuVdqe4Uhc
This commit is contained in:
2026-07-23 21:23:43 +02:00
parent b631de5ea3
commit 4461d17737
41 changed files with 41 additions and 41 deletions

View File

@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="9.2 17.2 81.6 81.6" width="100" height="100">
<path d="M40 22 L60 22 L58 42 L72 74 L28 74 L42 42 Z" fill="#4a6ad0" stroke="#101a38" stroke-width="3.5" stroke-linejoin="round"/>
<ellipse cx="50" cy="74" rx="22" ry="6" fill="#2a3a80" stroke="#101a38" stroke-width="2.5"/>
<path d="M40 22 L60 22" stroke="#8aa0e8" stroke-width="4" stroke-linecap="round"/>

Before

Width:  |  Height:  |  Size: 457 B

After

Width:  |  Height:  |  Size: 464 B