Skip to content

Commit 8c86f79

Browse files
committed
fix(RundownListItemView): the "Live" Rundown indicator is positioned incorrectly
1 parent 8eba5bc commit 8c86f79

File tree

2 files changed

+36
-32
lines changed

2 files changed

+36
-32
lines changed

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

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,12 @@
7474
}
7575

7676
.rundown-list-item__name {
77-
display: inline-block;
78-
align-self: center;
77+
display: inline-flex;
7978
align-items: center;
8079
letter-spacing: inherit;
8180

8281
.rundown-name {
83-
font-weight: bold;
82+
font-weight: 500;
8483
> a > svg {
8584
margin-right: 0;
8685
}
@@ -94,6 +93,17 @@
9493
margin-left: 1em;
9594
vertical-align: top;
9695
}
96+
.rundown-list-item__indicator {
97+
align-self: stretch;
98+
flex: 1 0;
99+
display: grid;
100+
align-items: center;
101+
justify-content: end;
102+
103+
> .origo-pulse {
104+
top: unset;
105+
}
106+
}
97107
.rundown-list-item__text {
98108
display: inline-flex;
99109
align-self: center;
@@ -286,10 +296,6 @@
286296
margin-bottom: 0;
287297
position: relative;
288298

289-
> .rundown-list-item__name > b {
290-
font-weight: 500;
291-
}
292-
293299
&::before,
294300
&::after {
295301
content: '';

packages/webui/src/client/ui/RundownList/RundownListItemView.tsx

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -98,33 +98,31 @@ export default React.memo(function RundownListItemView({
9898
<span></span>
9999
)}
100100
<span className="rundown-list-item__name" role="rowheader">
101-
<div className="grid-buttons-right">
102-
<span className="rundown-name">{rundownNameContent}</span>
103-
{rundown.description ? (
104-
<Tooltip overlay={rundown.description} trigger={['hover']} placement="right">
105-
<span className="rundown-list-description__icon">
106-
<PathIcon />
107-
</span>
108-
</Tooltip>
109-
) : null}
101+
<span className="rundown-name">{rundownNameContent}</span>
102+
{rundown.description ? (
103+
<Tooltip overlay={rundown.description} trigger={['hover']} placement="right">
104+
<span className="rundown-list-description__icon">
105+
<PathIcon />
106+
</span>
107+
</Tooltip>
108+
) : null}
110109

111-
<div>
112-
{isActive === true ? (
113-
<Tooltip
114-
overlay={t('This rundown is currently active')}
115-
mouseEnterDelay={TOOLTIP_DEFAULT_DELAY}
116-
placement="bottom"
117-
>
118-
<div className="origo-pulse small me-2">
119-
<div className="pulse-marker">
120-
<div className="pulse-rays"></div>
121-
<div className="pulse-rays delay"></div>
122-
</div>
110+
<span className="rundown-list-item__indicator">
111+
{isActive === true ? (
112+
<Tooltip
113+
overlay={t('This rundown is currently active')}
114+
mouseEnterDelay={TOOLTIP_DEFAULT_DELAY}
115+
placement="bottom"
116+
>
117+
<div className="origo-pulse small me-2">
118+
<div className="pulse-marker">
119+
<div className="pulse-rays"></div>
120+
<div className="pulse-rays delay"></div>
123121
</div>
124-
</Tooltip>
125-
) : null}
126-
</div>
127-
</div>
122+
</div>
123+
</Tooltip>
124+
) : null}
125+
</span>
128126
</span>
129127
{/* <RundownListItemProblems warnings={warnings} errors={errors} /> */}
130128
<span className="rundown-list-item__text" role="gridcell">

0 commit comments

Comments
 (0)