diff --git a/src/components/Workspace.js b/src/components/Workspace.js index 12e7bf9801..06e49737c6 100644 --- a/src/components/Workspace.js +++ b/src/components/Workspace.js @@ -11,7 +11,16 @@ import WorkspaceElastic from '../containers/WorkspaceElastic'; import ns from '../config/css-ns'; import { IIIFDropTarget } from './IIIFDropTarget'; -const StyledWorkspaceViewport = styled('div')(() => ({ +const Root = styled('div', { name: 'Workspace', slot: 'root' })(({ ownerState, theme }) => ({ + '@media (min-width: 600px)': { + ...(ownerState.isWorkspaceControlPanelVisible && { + paddingLeft: theme.spacing(8.5), + paddingTop: 0, + }), + }, + ...(ownerState.isWorkspaceControlPanelVisible && { + paddingTop: theme.spacing(9.25), + }), bottom: 0, left: 0, margin: 0, @@ -123,18 +132,8 @@ export class Workspace extends Component { return ( - {t('miradorViewer')} {this.workspaceByType()} - + ); }