Skip to content

Commit

Permalink
Fix comments not scrolling, like in #490. (#493)
Browse files Browse the repository at this point in the history
* Fix comments not scrolling, like in #490.

* Fix frozen model rotation bug just introduced by last fix.
  • Loading branch information
pablo-mayrgundter committed Nov 17, 2022
1 parent bfafabd commit 72aeed2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/Components/SideDrawer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ export function SideDrawer({
<div className={classes.content}>
<div
sx={{
overflow: 'hidden',
height: isPropertiesOn ? '50%' : '1200px',
height: isPropertiesOn ? '50%' : '100%',
display: isCommentsOn ? '' : 'none',
borderRadius: '0px',
borderBottom: `1px solid ${theme.palette.highlight.heaviest}`,
Expand Down Expand Up @@ -171,8 +170,6 @@ const useStyles = makeStyles((theme, props) => (preprocessMediaQuery(MOBILE_WIDT
},
},
content: {
'overflow': 'hidden',
'height': '95%',
'marginTop': '20px',
'display': 'flex',
'flexDirection': 'column',
Expand All @@ -187,7 +184,6 @@ const useStyles = makeStyles((theme, props) => (preprocessMediaQuery(MOBILE_WIDT
},
containerProperties: {
borderRadius: '5px',
overflow: 'hidden',
display: (p) => p.isPropertiesOn ? '' : 'none',
height: (p) => p.isCommentsOn ? '50%' : '98%',
},
Expand Down
2 changes: 1 addition & 1 deletion src/Containers/CadView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ const useStyles = makeStyles({
flexDirection: 'column',
justifyContent: 'flex-start',
alignItems: 'flex-start',
height: '70%',
maxHeight: '95%',
},
view: {
position: 'absolute',
Expand Down

0 comments on commit 72aeed2

Please sign in to comment.