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.5 15.5 68.9 68.9" width="100" height="100">
|
||||
<rect x="20" y="20" width="60" height="60" rx="11" fill="#1f7a44" stroke="#0e3320" stroke-width="4"/>
|
||||
<rect x="33" y="33" width="34" height="34" rx="5" fill="#3fbf6a" stroke="#0e3320" stroke-width="3"/>
|
||||
<path d="M50 33 L50 24 M50 67 L50 76 M33 50 L24 50 M67 50 L76 50" stroke="#186036" stroke-width="4" stroke-linecap="round"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 512 B After Width: | Height: | Size: 520 B |
Reference in New Issue
Block a user