@@ -15,6 +15,7 @@ import { MigrationView } from './Settings/Migration.js'
1515import { SettingsMenu } from './Settings/SettingsMenu.js'
1616import { protectString } from '@sofie-automation/corelib/dist/protectedString'
1717import { CorelibPubSub } from '@sofie-automation/corelib/dist/pubsub'
18+ import Container from 'react-bootstrap/esm/Container'
1819
1920export function Settings ( ) : JSX . Element | null {
2021 useSubscription ( CorelibPubSub . peripheralDevices , null )
@@ -24,35 +25,39 @@ export function Settings(): JSX.Element | null {
2425 useSubscription ( CorelibPubSub . blueprints , null )
2526
2627 return (
27- < div className = "mx-5 mt-5 has-statusbar" >
28- < Row >
29- < Col xs = { 12 } sm = { 5 } md = { 4 } lg = { 3 } className = "settings-menu mb-4" >
30- < ErrorBoundary >
31- < SettingsMenu />
32- </ ErrorBoundary >
33- </ Col >
34- < Col xs = { 12 } sm = { 7 } md = { 8 } lg = { 9 } className = "settings-dialog" >
35- < ErrorBoundary >
36- < Switch >
37- < Route path = "/settings" exact component = { WelcomeToSettings } />
38- < Route path = "/settings/studio/:studioId" component = { StudioSettings } />
39- < Route path = "/settings/showStyleBase/:showStyleBaseId" component = { ShowStyleSettings } />
40- < Route path = "/settings/peripheralDevice/:deviceId" component = { DeviceSettings } />
41- < Route
42- path = "/settings/blueprint/:blueprintId"
43- render = { ( props ) => (
44- < BlueprintSettings blueprintId = { protectString ( decodeURIComponent ( props . match . params . blueprintId ) ) } />
45- ) }
46- />
47- < Route path = "/settings/tools/snapshots" component = { SnapshotsView } />
48- < Route path = "/settings/tools/migration" component = { MigrationView } />
49- < Route path = "/settings/tools/system" component = { SystemManagement } />
50- < Redirect to = "/settings" />
51- </ Switch >
52- </ ErrorBoundary >
53- </ Col >
54- </ Row >
55- </ div >
28+ < Container fluid className = "header-clear" >
29+ < div className = "mx-5 mt-5 has-statusbar" >
30+ < Row >
31+ < Col xs = { 12 } sm = { 5 } md = { 4 } lg = { 3 } className = "settings-menu mb-4" >
32+ < ErrorBoundary >
33+ < SettingsMenu />
34+ </ ErrorBoundary >
35+ </ Col >
36+ < Col xs = { 12 } sm = { 7 } md = { 8 } lg = { 9 } className = "settings-dialog" >
37+ < ErrorBoundary >
38+ < Switch >
39+ < Route path = "/settings" exact component = { WelcomeToSettings } />
40+ < Route path = "/settings/studio/:studioId" component = { StudioSettings } />
41+ < Route path = "/settings/showStyleBase/:showStyleBaseId" component = { ShowStyleSettings } />
42+ < Route path = "/settings/peripheralDevice/:deviceId" component = { DeviceSettings } />
43+ < Route
44+ path = "/settings/blueprint/:blueprintId"
45+ render = { ( props ) => (
46+ < BlueprintSettings
47+ blueprintId = { protectString ( decodeURIComponent ( props . match . params . blueprintId ) ) }
48+ />
49+ ) }
50+ />
51+ < Route path = "/settings/tools/snapshots" component = { SnapshotsView } />
52+ < Route path = "/settings/tools/migration" component = { MigrationView } />
53+ < Route path = "/settings/tools/system" component = { SystemManagement } />
54+ < Redirect to = "/settings" />
55+ </ Switch >
56+ </ ErrorBoundary >
57+ </ Col >
58+ </ Row >
59+ </ div >
60+ </ Container >
5661 )
5762}
5863
0 commit comments