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="12.4 14.4 75.3 75.3" width="100" height="100">
|
||||
<circle cx="50" cy="52" r="33" fill="#33415e" stroke="#0e1420" stroke-width="3.5"/>
|
||||
<line x1="35" y1="27" x2="52" y2="22" stroke="#0e1420" stroke-width="4" stroke-linecap="round"/>
|
||||
<circle cx="50" cy="52" r="21" fill="none" stroke="#46567a" stroke-width="2.6"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 412 B After Width: | Height: | Size: 420 B |
Reference in New Issue
Block a user