Skip to content

Commit

Permalink
Center the companionArea expand/collapse toggle icon
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Nov 21, 2023
1 parent 0847e2a commit 4601d13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/CompanionArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const StyledWrapper = styled('div')({
const StyledToggle = styled('div')(({ theme }) => ({
backgroundColor: theme.palette.background.paper,
border: `1px solid ${theme.palette.mode === 'dark' ? theme.palette.divider : theme.palette.shades?.dark}`,
borderInlineStart: 0,
borderRadius: 0,
height: '48px',
left: '100%',
Expand All @@ -29,6 +30,8 @@ const StyledToggle = styled('div')(({ theme }) => ({
position: 'absolute',
width: '23px',
zIndex: theme.zIndex.drawer,
alignItems: 'center',

Check failure on line 33 in src/components/CompanionArea.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Expected object keys to be in insensitive ascending order. 'alignItems' should be before 'zIndex'

Check failure on line 33 in src/components/CompanionArea.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Expected object keys to be in insensitive ascending order. 'alignItems' should be before 'zIndex'

Check failure on line 33 in src/components/CompanionArea.js

View workflow job for this annotation

GitHub Actions / build (19.x)

Expected object keys to be in insensitive ascending order. 'alignItems' should be before 'zIndex'
display: 'inline-flex'

Check failure on line 34 in src/components/CompanionArea.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Missing trailing comma

Check failure on line 34 in src/components/CompanionArea.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Missing trailing comma

Check failure on line 34 in src/components/CompanionArea.js

View workflow job for this annotation

GitHub Actions / build (19.x)

Missing trailing comma
}));

const StyledToggleButton = styled(MiradorMenuButton)({
Expand Down

0 comments on commit 4601d13

Please sign in to comment.