Skip to content
Snippets Groups Projects
Unverified Commit 8b56e610 authored by Jack Reed's avatar Jack Reed Committed by GitHub
Browse files

Merge pull request #2525 from ProjectMirador/resize-left-companion

Make left companion windows resizable
parents 8ec919d7 fe5674e8
Branches
Tags
No related merge requests found
...@@ -33,6 +33,10 @@ export class CompanionWindow extends Component { ...@@ -33,6 +33,10 @@ export class CompanionWindow extends Component {
return { ...base, left: true }; return { ...base, left: true };
} }
if (position === 'left') {
return { ...base, right: true };
}
if (position === 'bottom' || position === 'far-bottom') { if (position === 'bottom' || position === 'far-bottom') {
return { ...base, top: true }; return { ...base, top: true };
} }
...@@ -71,7 +75,7 @@ export class CompanionWindow extends Component { ...@@ -71,7 +75,7 @@ export class CompanionWindow extends Component {
disableDragging disableDragging
enableResizing={this.resizeHandles()} enableResizing={this.resizeHandles()}
minHeight={50} minHeight={50}
minWidth={100} minWidth={position === 'left' ? 235 : 100}
> >
<Toolbar className={[classes.toolbar, size.width < 370 ? classes.small : null, ns('companion-window-header')].join(' ')} disableGutters> <Toolbar className={[classes.toolbar, size.width < 370 ? classes.small : null, ns('companion-window-header')].join(' ')} disableGutters>
......
...@@ -25,7 +25,7 @@ const styles = theme => ({ ...@@ -25,7 +25,7 @@ const styles = theme => ({
width: '100%', width: '100%',
}, },
left: { left: {
width: 235, minWidth: 235,
}, },
root: { root: {
display: 'flex', display: 'flex',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment