Skip to content

Commit

Permalink
fix remove ribbon button ux
Browse files Browse the repository at this point in the history
  • Loading branch information
blackforestboi committed Jul 30, 2024
1 parent 9019602 commit 668d7f7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/in-page-ui/ribbon/react/components/ribbon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1986,12 +1986,9 @@ export default class Ribbon extends Component<Props, State> {
{!this.props.sidebar.isSidebarOpen && (
<CloseIconContainer
onMouseDown={(event) => {
if (!this.props.showRemoveMenu) {
if (event.shiftKey) {
this.props.toggleRemoveMenu()
}
}}
onMouseUp={(event) => {
if (!this.props.showRemoveMenu) {
} else {
this.props.handleRemoveRibbon()
}
}}
Expand Down

0 comments on commit 668d7f7

Please sign in to comment.