Skip to content

Commit

Permalink
Merge pull request #88 from kbss-cvut/hide-items
Browse files Browse the repository at this point in the history
Make items hideable
  • Loading branch information
PluharVit authored Dec 12, 2022
2 parents a52a5f1 + 98c775b commit f51c720
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/PlanningTool.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -959,14 +959,18 @@ class PlanningTool extends Component {
}
} else if (item.highlight) {
backgroundColor = item.highlightBgColor
}else if(item.selectedGroup){
} else if (item.selectedGroup) {
backgroundColor = '#c3073f'
}

if (itemContext.dimensions.width < 20) {
itemContext.dimensions.width = 20
}

if (item.isHidden) {
return null
}

return (
<div
onMouseEnter={() => this.handleShowIconsOnMouseEnter(null, item.id)}
Expand Down

0 comments on commit f51c720

Please sign in to comment.