mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-09 08:19:15 +00:00
refactor(css): migrate use of deprecated import in messagecontrol
This commit is contained in:
committed by
Carlos Valente
parent
b0f02e726d
commit
2f3cf9825a
@@ -1,5 +1,3 @@
|
|||||||
@import "./MessageControl.module.scss";
|
|
||||||
|
|
||||||
.inputItems {
|
.inputItems {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr auto;
|
grid-template-columns: 1fr auto;
|
||||||
@@ -8,5 +6,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
@extend .label;
|
font-size: $inner-section-text-size;
|
||||||
|
color: $label-gray;
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
color: $action-text-color;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ export default function InputRow(props: PropsWithChildren<InputRowProps>) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={style.inputRow}>
|
<div>
|
||||||
<label className={cx([style.label, visible ?? style.active])} htmlFor={label}>
|
<label className={cx([style.label, visible ?? style.active])} htmlFor={label}>
|
||||||
{label}
|
{label}
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.flexPanel {
|
.growPanel {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ function MessageControlExport() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ProtectRoute permission='editor'>
|
<ProtectRoute permission='editor'>
|
||||||
<Editor.Panel className={style.flexPanel} data-testid='panel-messages-control'>
|
<Editor.Panel className={style.growPanel} data-testid='panel-messages-control'>
|
||||||
{!isExtracted && <Editor.CornerExtract onClick={(event) => handleLinks('messagecontrol', event)} />}
|
{!isExtracted && <Editor.CornerExtract onClick={(event) => handleLinks('messagecontrol', event)} />}
|
||||||
{isExtracted && <ViewNavigationMenu suppressSettings isNavigationLocked={getIsNavigationLocked()} />}
|
{isExtracted && <ViewNavigationMenu suppressSettings isNavigationLocked={getIsNavigationLocked()} />}
|
||||||
|
|
||||||
|
|||||||
+6
-31
@@ -1,18 +1,3 @@
|
|||||||
.label {
|
|
||||||
font-size: $inner-section-text-size;
|
|
||||||
color: $label-gray;
|
|
||||||
|
|
||||||
&.active {
|
|
||||||
color: $action-text-color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.previewContainer {
|
|
||||||
display: grid;
|
|
||||||
gap: $element-spacing;
|
|
||||||
grid-template-columns: 3fr 2fr;
|
|
||||||
}
|
|
||||||
|
|
||||||
.preview {
|
.preview {
|
||||||
background-color: $ui-black;
|
background-color: $ui-black;
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -21,21 +6,6 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.options {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: $element-spacing;
|
|
||||||
}
|
|
||||||
|
|
||||||
.eventStatus {
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
margin: 0.5rem 0.25rem;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 0.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mainContent {
|
.mainContent {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@@ -61,9 +31,13 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.timerIndicators {
|
.eventStatus {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
margin: 0.5rem 0.25rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
gap: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.statusIcon {
|
.statusIcon {
|
||||||
@@ -73,3 +47,4 @@
|
|||||||
color: $active-indicator;
|
color: $active-indicator;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@ import { handleLinks } from '../../../common/utils/linkUtils';
|
|||||||
import { cx, timerPlaceholder } from '../../../common/utils/styleUtils';
|
import { cx, timerPlaceholder } from '../../../common/utils/styleUtils';
|
||||||
import PipRoot from '../../../views/editor/pip-timer/PipRoot';
|
import PipRoot from '../../../views/editor/pip-timer/PipRoot';
|
||||||
|
|
||||||
import style from './MessageControl.module.scss';
|
import style from './TimerPreview.module.scss';
|
||||||
|
|
||||||
const secondarySourceLabels: Record<string, string> = {
|
const secondarySourceLabels: Record<string, string> = {
|
||||||
aux1: 'Aux 1',
|
aux1: 'Aux 1',
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
.previewContainer {
|
||||||
|
display: grid;
|
||||||
|
gap: $element-spacing;
|
||||||
|
grid-template-columns: 3fr 2fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.options {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: $element-spacing;
|
||||||
|
}
|
||||||
@@ -8,7 +8,7 @@ import { setMessage, useTimerViewControl } from '../../../common/hooks/useSocket
|
|||||||
|
|
||||||
import TimerPreview from './TimerPreview';
|
import TimerPreview from './TimerPreview';
|
||||||
|
|
||||||
import style from './MessageControl.module.scss';
|
import style from './TimerViewControl.module.scss';
|
||||||
|
|
||||||
export default function TimerControlsPreview() {
|
export default function TimerControlsPreview() {
|
||||||
const { blackout, blink } = useTimerViewControl();
|
const { blackout, blink } = useTimerViewControl();
|
||||||
|
|||||||
Reference in New Issue
Block a user