Skip to content

Commit ed98911

Browse files
committed
fix: PieceIcons layout, RundownView loading spinner
1 parent a9a65a4 commit ed98911

File tree

17 files changed

+82
-121
lines changed

17 files changed

+82
-121
lines changed

packages/webui/src/client/styles/bootstrap-customize.scss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
}
6464

6565
[data-bs-theme=dark] {
66-
scrollbar-color: var(--org-color-shade-3) var(--org-color-shade-1);
66+
scrollbar-color: var(--ui-dark-color-brighter) var(--ui-dark-color);
6767

6868
.btn.btn-secondary {
6969
--bs-btn-border-color: transparent;
@@ -220,6 +220,16 @@ fieldset:disabled .btn::before {
220220
min-width: 5em;
221221
}
222222

223+
@media (max-width: 992px) {
224+
.modal {
225+
padding-top: 1em !important;
226+
}
227+
228+
.modal-dialog-scrollable {
229+
height: 80vh;
230+
}
231+
}
232+
223233
.card {
224234
--bs-card-bg: var(--org-color-shade-0, hsla(207, 10%, 18%, 1));
225235
--bs-card-border-width: 0;

packages/webui/src/client/styles/rundownView.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3513,7 +3513,7 @@ svg.icon {
35133513
.rundown-view--loading {
35143514
margin-top: 0;
35153515

3516-
> .mod.mhl.mvl.alc {
3516+
> div > .origo-spinner {
35173517
position: absolute;
35183518
top: 50%;
35193519
left: 50%;

packages/webui/src/client/ui/PieceIcons/PieceIcon.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const PieceIcon = (props: {
5050
const rmContent = piece ? (piece.content as RemoteContent | undefined) : undefined
5151
return (
5252
<RemoteInputIcon
53-
inputIndex={rmContent ? rmContent.studioLabelShort || rmContent.studioLabel : undefined}
53+
inputNumber={rmContent ? rmContent.studioLabelShort || rmContent.studioLabel : undefined}
5454
abbreviation={props.sourceLayer.abbreviation}
5555
/>
5656
)
@@ -62,7 +62,7 @@ export const PieceIcon = (props: {
6262
const localContent = piece ? (piece.content as EvsContent | undefined) : undefined
6363
return (
6464
<LocalInputIcon
65-
inputIndex={localContent ? localContent.studioLabelShort || localContent.studioLabel : undefined}
65+
inputNumber={localContent ? localContent.studioLabelShort || localContent.studioLabel : undefined}
6666
abbreviation={props.sourceLayer.abbreviation}
6767
/>
6868
)
@@ -75,7 +75,7 @@ export const PieceIcon = (props: {
7575
const camContent = piece ? (piece.content as CameraContent | undefined) : undefined
7676
return (
7777
<CamInputIcon
78-
inputIndex={camContent ? camContent.studioLabelShort || camContent.studioLabel : undefined}
78+
inputNumber={camContent ? camContent.studioLabelShort || camContent.studioLabel : undefined}
7979
abbreviation={props.sourceLayer.abbreviation}
8080
/>
8181
)

packages/webui/src/client/ui/PieceIcons/PieceIcons.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ $letter-spacing: 0.02em;
2626
font-size: $font-size-base;
2727
font-weight: 300;
2828
letter-spacing: $letter-spacing;
29+
30+
.input-number {
31+
font-weight: normal;
32+
}
2933
}
3034
}
3135
}

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

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
11
// @todo: use dynamic data for camera number
22
export function CamInputIcon({
3-
inputIndex,
3+
inputNumber,
44
abbreviation,
55
}: {
6-
inputIndex?: string
6+
inputNumber?: string
77
abbreviation?: string
88
}): JSX.Element {
99
return (
1010
<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="piece-icon-bkg camera" />
12-
<text
13-
x="63.25"
14-
y="71.513954"
15-
textAnchor="middle"
16-
textLength="126.5"
17-
className="piece-icon-text"
18-
xmlSpace="preserve"
19-
>
20-
<tspan lengthAdjust="spacing" className="label">
12+
<text x="63.25" y="71.513954" textAnchor="middle" className="piece-icon-text" xmlSpace="preserve">
13+
<tspan className="label">
2114
{abbreviation !== undefined ? abbreviation : 'C'}
22-
<tspan>{inputIndex !== undefined ? inputIndex : ''}</tspan>
15+
<tspan className="input-number">{inputNumber !== undefined ? inputNumber : ''}</tspan>
2316
</tspan>
2417
</text>
2518
</svg>

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

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,8 @@ export function GraphicsInputIcon({ abbreviation }: { abbreviation?: string }):
22
return (
33
<svg className="piece-icon" version="1.1" viewBox="0 0 126.5 89" xmlns="http://www.w3.org/2000/svg">
44
<rect width="126.5" height="89" className="piece-icon-bkg graphics" />
5-
<text
6-
x="63.25"
7-
y="71.513954"
8-
textAnchor="middle"
9-
textLength="126.5"
10-
className="piece-icon-text"
11-
xmlSpace="preserve"
12-
>
13-
<tspan lengthAdjust="spacing" className="label">
14-
{abbreviation !== undefined ? abbreviation : 'G'}
15-
</tspan>
5+
<text x="63.25" y="71.513954" textAnchor="middle" className="piece-icon-text" xmlSpace="preserve">
6+
<tspan className="label">{abbreviation !== undefined ? abbreviation : 'G'}</tspan>
167
</text>
178
</svg>
189
)

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

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,8 @@ export function LiveSpeakInputIcon({ abbreviation }: { abbreviation?: string }):
66
<stop className="stop1" offset={0.5} />
77
<stop className="stop2" offset={0.5} />
88
</linearGradient>
9-
<text
10-
x="63.25"
11-
y="71.513954"
12-
textAnchor="middle"
13-
textLength="126.5"
14-
className="piece-icon-text"
15-
xmlSpace="preserve"
16-
>
17-
<tspan lengthAdjust="spacing" className="label">
18-
{abbreviation !== undefined ? abbreviation : 'LSK'}
19-
</tspan>
9+
<text x="63.25" y="71.513954" textAnchor="middle" className="piece-icon-text" xmlSpace="preserve">
10+
<tspan className="label">{abbreviation !== undefined ? abbreviation : 'LSK'}</tspan>
2011
</text>
2112
</svg>
2213
)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { BaseRemoteInputIcon } from './RemoteInputIcon.js'
22

3-
export default function LocalInputIcon(props: Readonly<{ inputIndex?: string; abbreviation?: string }>): JSX.Element {
3+
export default function LocalInputIcon(props: Readonly<{ inputNumber?: string; abbreviation?: string }>): JSX.Element {
44
return (
55
<BaseRemoteInputIcon className="local">
66
{props.abbreviation !== undefined ? props.abbreviation : 'EVS'}
7-
<tspan>{props.inputIndex ?? ''}</tspan>
7+
<tspan>{props.inputNumber ?? ''}</tspan>
88
</BaseRemoteInputIcon>
99
)
1010
}

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

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,24 @@ export function BaseRemoteInputIcon(props: Readonly<React.PropsWithChildren<{ cl
44
return (
55
<svg className="piece-icon" version="1.1" viewBox="0 0 126.5 89" xmlns="http://www.w3.org/2000/svg">
66
<rect width="126.5" height="89" className={`piece-icon-bkg ${props.className}`} />
7-
<text
8-
x="63.25"
9-
y="71.513954"
10-
textAnchor="middle"
11-
textLength="126.5"
12-
className="piece-icon-text"
13-
xmlSpace="preserve"
14-
>
15-
<tspan lengthAdjust="spacing" className="label">
16-
{props.children}
17-
</tspan>
7+
<text x="63.25" y="71.513954" textAnchor="middle" className="piece-icon-text" xmlSpace="preserve">
8+
<tspan className="label">{props.children}</tspan>
189
</text>
1910
</svg>
2011
)
2112
}
2213

2314
export function RemoteInputIcon({
24-
inputIndex,
15+
inputNumber,
2516
abbreviation,
2617
}: {
27-
inputIndex?: string
18+
inputNumber?: string
2819
abbreviation?: string
2920
}): JSX.Element {
3021
return (
3122
<BaseRemoteInputIcon className="remote">
3223
{abbreviation !== undefined ? abbreviation : 'LIVE'}
33-
<tspan className="index">{inputIndex ?? ''}</tspan>
24+
<tspan className="input-number">{inputNumber ?? ''}</tspan>
3425
</BaseRemoteInputIcon>
3526
)
3627
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export function RemoteSpeakInputIcon({ abbreviation }: { abbreviation?: string }
99
<text
1010
x="5"
1111
y="66.514"
12-
textLength="116.5"
1312
style={{
1413
fill: '#ffffff',
1514
fontFamily: 'open-sans',

0 commit comments

Comments
 (0)