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:
@@ -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="15.8 20.8 70.5 70.5" width="100" height="100">
|
||||
<path d="M20 40 L44 30 L52 44 L74 34 L82 58 L60 66 L66 82 L38 78 L28 62 Z" fill="#8a8078" stroke="#241f1a" stroke-width="3.5" stroke-linejoin="round"/>
|
||||
<circle cx="46" cy="52" r="4" fill="#241f1a"/>
|
||||
<path d="M34 46 L44 60 M58 50 L66 62" stroke="#5f574f" stroke-width="2.5" stroke-linecap="round"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 399 B After Width: | Height: | Size: 407 B |
Reference in New Issue
Block a user