Skip to content

Commit

Permalink
do not show clear button when the model is sectioned
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegMoshkovich committed Oct 21, 2023
1 parent d63ebb1 commit 34fdb5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/Components/MiscGroup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ import VisibilityOffOutlinedIcon from '@mui/icons-material/VisibilityOffOutlined
* @return {React.Component}
*/
export default function MiscGroup({deselectItems, viewer, repo}) {
const cutPlanes = useStore((state) => state.cutPlanes)
const levelInstance = useStore((state) => state.levelInstance)
const selectedElement = useStore((state) => state.selectedElement)
const isModelInteractionGroupVisible = useStore((state) => state.isModelInteractionGroupVisible)
const [isIsolate, setIsIsolate] = useState(false)
Expand All @@ -32,13 +30,12 @@ export default function MiscGroup({deselectItems, viewer, repo}) {

const isSelected = () => {
const ifSelected = (
selectedElement !== null ||
cutPlanes.length !== 0 ||
levelInstance !== null
selectedElement !== null
)
return ifSelected
}


return (
<Stack
spacing={2}
Expand Down
2 changes: 1 addition & 1 deletion src/Containers/CadView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ export default function CadView({
'alignItems': 'flex-start',
'maxHeight': '95%',
'width': '275px',
'@media (max-width: 900px)': {
'@media (max-width: 600px)': {
width: `78%`,
maxWidth: `78%`,
left: '4.0em',
Expand Down

0 comments on commit 34fdb5e

Please sign in to comment.