Skip to content

Commit

Permalink
fix: better matcher expander
Browse files Browse the repository at this point in the history
Signed-off-by: mathis-m <[email protected]>
  • Loading branch information
mathis-m committed Jan 20, 2021
1 parent 7ec9375 commit 1f34534
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ export class MatcherMultiSelect extends React.Component {
}
return (
<div className="matcher-multi-select-wrapper">
<div className={classNames.join(" ")}>
{matcherSelectOptionComponents}
</div>
<button
className={btnClassNames.join(" ")}
title={this.state.showSelect ? "Collapse matchers" : "Expand matchers"}
onClick={this.onClick}>

<svg className="arrow" width="20" height="20">
<use href={this.state.showSelect ? "#large-arrow" : "#large-arrow-down"}
xlinkHref={this.state.showSelect ? "#large-arrow" : "#large-arrow-down"} />
<svg className="arrow" width="20" height="20" transform={this.state.showSelect ? "rotate(180)" : "rotate(0)"}>
<use href="#large-arrow"
xlinkHref="#large-arrow" />
</svg>
</button>
<div className={classNames.join(" ")}>
{matcherSelectOptionComponents}
</div>
</div>
)
}
Expand Down

0 comments on commit 1f34534

Please sign in to comment.