Skip to content

Commit 46c947f

Browse files
committed
fix: splitscreen should follow the other PieceIcons style
1 parent 38846fe commit 46c947f

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

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

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default class SplitInputIcon extends React.Component<{
1717
const c = piece.content as SplitsContent
1818
const camera = c.boxSourceConfiguration.find((i) => i.type === SourceLayerType.CAMERA)
1919
if (camera && camera.studioLabel) {
20-
const label = camera.studioLabel.match(/([a-zA-Z]+)?(\d+)/)
20+
const label = camera.studioLabelShort || camera.studioLabel.match(/([a-zA-Z]+)?(\d+)/)
2121
return (
2222
<React.Fragment>
2323
{label && label[1] ? label[1].substr(0, 1).toUpperCase() + ' ' : ''}
@@ -69,29 +69,14 @@ export default class SplitInputIcon extends React.Component<{
6969
/>
7070
{!this.props.hideLabel && (
7171
<text
72-
x="9.6414976"
73-
textLength="106.5"
72+
x="63.25"
7473
y="71.513954"
7574
textAnchor="middle"
76-
style={{
77-
fill: '#ffffff',
78-
fontFamily: 'open-sans',
79-
fontSize: '40px',
80-
letterSpacing: '0px',
81-
lineHeight: '1.25',
82-
wordSpacing: '0px',
83-
textShadow: '0 2px 9px rgba(0, 0, 0, 0.5)',
84-
}}
75+
textLength="126.5"
76+
className="piece-icon-text"
8577
xmlSpace="preserve"
86-
className="label"
8778
>
88-
<tspan
89-
x="63.25"
90-
y="71.513954"
91-
textLength="106.5"
92-
lengthAdjust="spacingAndGlyphs"
93-
style={{ fill: '#ffffff', fontFamily: 'Roboto', fontSize: '75px', fontWeight: 100 }}
94-
>
79+
<tspan lengthAdjust="spacing" className="label">
9580
{this.getCameraLabel(this.props.piece)}
9681
</tspan>
9782
</text>

0 commit comments

Comments
 (0)