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 8.2 81.6 81.6" width="100" height="100">
<path d="M50 14 L62 40 L86 58 L64 56 L60 84 L40 84 L36 56 L14 58 L38 40 Z" fill="#9fb3c9" stroke="#232a33" stroke-width="4" stroke-linejoin="round"/>
<circle cx="50" cy="40" r="6.5" fill="#66cc33" stroke="#232a33" stroke-width="2.5"/>
<g fill="#3a4450"><circle cx="45" cy="80" r="3"/><circle cx="55" cy="80" r="3"/></g>

Before

Width:  |  Height:  |  Size: 421 B

After

Width:  |  Height:  |  Size: 427 B