Skip to content

Commit 283dfb5

Browse files
committed
fix: piece icon cam squashed
1 parent 6a9629b commit 283dfb5

File tree

1 file changed

+7
-23
lines changed

1 file changed

+7
-23
lines changed

packages/webui/src/client/ui/PieceIcons/Renderers/CamInputIcon.tsx

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,19 @@ export function CamInputIcon({
77
abbreviation?: string
88
}): JSX.Element {
99
return (
10-
<svg className="piece_icon" version="1.1" viewBox="0 0 126.5 89" xmlns="http://www.w3.org/2000/svg">
10+
<svg className="piece-icon" version="1.1" viewBox="0 0 126.5 89" xmlns="http://www.w3.org/2000/svg">
1111
<rect width="126.5" height="89" className="camera" />
1212
<text
13-
x="9.6414976"
14-
textLength="106.5"
13+
x="63.25"
1514
y="71.513954"
16-
style={{
17-
fill: '#ffffff',
18-
fontFamily: 'open-sans',
19-
fontSize: '40px',
20-
letterSpacing: '0px',
21-
lineHeight: '1.25',
22-
wordSpacing: '0px',
23-
textShadow: '0 2px 9px rgba(0, 0, 0, 0.5)',
24-
}}
15+
textAnchor="middle"
16+
textLength="126.5"
17+
className="piece-icon-text"
2518
xmlSpace="preserve"
2619
>
27-
<tspan
28-
x="9.6414976"
29-
y="71.513954"
30-
textLength="107.21"
31-
lengthAdjust="spacing"
32-
style={{ fill: '#ffffff', fontFamily: 'Roboto', fontSize: '75px', fontWeight: 100 }}
33-
className="label"
34-
>
20+
<tspan lengthAdjust="spacing" className="label">
3521
{abbreviation !== undefined ? abbreviation : 'C'}
36-
<tspan style={{ fontFamily: 'Roboto', fontWeight: 'normal' }}>
37-
{inputIndex !== undefined ? inputIndex : ''}
38-
</tspan>
22+
<tspan>{inputIndex !== undefined ? inputIndex : ''}</tspan>
3923
</tspan>
4024
</text>
4125
</svg>

0 commit comments

Comments
 (0)