@@ -13,6 +13,8 @@ import {
13
13
PeripheralDevicePubSub ,
14
14
PeripheralDevicePubSubCollectionsNames ,
15
15
} from '@sofie-automation/shared-lib/dist/pubsub/peripheralDevice'
16
+ import Row from 'react-bootstrap/Row'
17
+ import Col from 'react-bootstrap/Col'
16
18
17
19
const MountedTriggers = new Mongo . Collection < DeviceTriggerMountedAction > (
18
20
PeripheralDevicePubSubCollectionsNames . mountedTriggers
@@ -30,16 +32,12 @@ const DeviceTriggersView: React.FC = function TimelineDatastoreView() {
30
32
const { peripheralDeviceId } = useParams < DeviceTriggersViewRouteParams > ( )
31
33
32
34
return (
33
- < div className = "mtl gutter " >
34
- < header className = "mvs " >
35
+ < div className = "mx-5 mt-5 " >
36
+ < header className = "my-2 " >
35
37
< h1 > { t ( 'Device Triggers' ) } </ h1 >
36
38
</ header >
37
- < div className = "mod mvl" >
38
- { peripheralDeviceId && (
39
- < div >
40
- < DeviceTriggersControls peripheralDeviceId = { protectString ( peripheralDeviceId ) } />
41
- </ div >
42
- ) }
39
+ < div className = "my-5" >
40
+ { peripheralDeviceId && < DeviceTriggersControls peripheralDeviceId = { protectString ( peripheralDeviceId ) } /> }
43
41
</ div >
44
42
</ div >
45
43
)
@@ -76,18 +74,20 @@ function DeviceTriggersControls({ peripheralDeviceId }: Readonly<IDatastoreContr
76
74
)
77
75
78
76
return (
79
- < div >
80
- < label >
81
- Device Ids:
82
- < input
83
- value = { deviceIds . join ( ', ' ) }
84
- onChange = { ( e ) => {
85
- setDeviceIds ( e . target . value . split ( / , \s * / ) )
86
- } }
87
- />
88
- </ label >
89
- < div >
90
- < table className = "testtools-timelinetable" >
77
+ < Row >
78
+ < Col xs = { 12 } className = "mb-4" >
79
+ < label >
80
+ Device Ids:
81
+ < input
82
+ value = { deviceIds . join ( ', ' ) }
83
+ onChange = { ( e ) => {
84
+ setDeviceIds ( e . target . value . split ( / , \s * / ) )
85
+ } }
86
+ />
87
+ </ label >
88
+ </ Col >
89
+ < Col xs = { 12 } >
90
+ < table className = "testtools-datatable" >
91
91
< tbody >
92
92
< tr >
93
93
< th > </ th >
@@ -126,8 +126,8 @@ function DeviceTriggersControls({ peripheralDeviceId }: Readonly<IDatastoreContr
126
126
) ) }
127
127
</ tbody >
128
128
</ table >
129
- </ div >
130
- </ div >
129
+ </ Col >
130
+ </ Row >
131
131
)
132
132
}
133
133
0 commit comments