Skip to content

Commit 8aeb64d

Browse files
committed
Fix suit icon sizing: use 1em for scalable SVGs
1 parent cc014cf commit 8aeb64d

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
height: 100dvh;
3838
}
3939
</style>
40-
<script type="module" crossorigin src="/assets/index-DI-fvW6R.js"></script>
40+
<script type="module" crossorigin src="/assets/index-C605yba5.js"></script>
4141
<link rel="stylesheet" crossorigin href="/assets/index-DBAmFvu5.css">
4242
</head>
4343
<body>

docs/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const CACHE_NAME = 'kolkhoz-v7';
1+
const CACHE_NAME = 'kolkhoz-v8';
22
const STATIC_ASSETS = [
33
'/',
44
'/index.html',

public/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const CACHE_NAME = 'kolkhoz-v7';
1+
const CACHE_NAME = 'kolkhoz-v8';
22
const STATIC_ASSETS = [
33
'/',
44
'/index.html',

src/client/components/SuitIcon.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function NavIcon({ type, className = '' }) {
9898
// ============================================
9999

100100
const WheatIcon = () => (
101-
<svg viewBox="0 0 24 24" width="24" height="24" className="suit-svg">
101+
<svg viewBox="0 0 24 24" width="1em" height="1em" className="suit-svg">
102102
<path d="M12 2 L12 22" stroke="currentColor" strokeWidth="1.5" fill="none"/>
103103
<ellipse cx="9" cy="5" rx="2.5" ry="1.2" transform="rotate(-30 9 5)" fill="currentColor"/>
104104
<ellipse cx="8.5" cy="8" rx="2.5" ry="1.2" transform="rotate(-25 8.5 8)" fill="currentColor"/>
@@ -111,7 +111,7 @@ const WheatIcon = () => (
111111
);
112112

113113
const SunflowerIcon = () => (
114-
<svg viewBox="0 0 24 24" width="24" height="24" className="suit-svg">
114+
<svg viewBox="0 0 24 24" width="1em" height="1em" className="suit-svg">
115115
<circle cx="12" cy="10" r="4" fill="currentColor"/>
116116
<ellipse cx="12" cy="3" rx="2" ry="3" fill="currentColor"/>
117117
<ellipse cx="17" cy="5" rx="2" ry="3" transform="rotate(45 17 5)" fill="currentColor"/>
@@ -126,7 +126,7 @@ const SunflowerIcon = () => (
126126
);
127127

128128
const PotatoIcon = () => (
129-
<svg viewBox="0 0 24 24" width="24" height="24" className="suit-svg">
129+
<svg viewBox="0 0 24 24" width="1em" height="1em" className="suit-svg">
130130
<path d="M12 3 C6 3 3 8 3 12 C3 17 6 21 12 21 C18 21 21 17 21 12 C21 8 18 3 12 3 Z" fill="currentColor"/>
131131
<circle cx="8" cy="9" r="1" fill="none" stroke="currentColor" strokeWidth="0.8" opacity="0.6"/>
132132
<circle cx="15" cy="11" r="0.8" fill="none" stroke="currentColor" strokeWidth="0.8" opacity="0.6"/>
@@ -135,7 +135,7 @@ const PotatoIcon = () => (
135135
);
136136

137137
const BeetIcon = () => (
138-
<svg viewBox="0 0 24 24" width="24" height="24" className="suit-svg">
138+
<svg viewBox="0 0 24 24" width="1em" height="1em" className="suit-svg">
139139
<path d="M12 8 C7 8 5 12 6 16 C7 19 10 22 12 22 C14 22 17 19 18 16 C19 12 17 8 12 8 Z" fill="currentColor"/>
140140
<path d="M10 8 C9 5 7 3 6 2 C8 3 10 4 11 7" fill="currentColor"/>
141141
<path d="M12 7 C12 4 12 2 12 1 C12 2 12 4 12 7" fill="currentColor"/>

0 commit comments

Comments
 (0)