Skip to content

Commit

Permalink
Fix the position of the separator in the operator menu when editing a…
Browse files Browse the repository at this point in the history
… rule (#3037)

* Fix line separator position in operations menu

* release note
  • Loading branch information
ctozlowski committed Jul 12, 2024
1 parent 4575616 commit 32d8304
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/modals/EditRule.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export function OpSelect({
.map(op => [op, formatOp(op, type)]);

if (type === 'string' || type === 'id') {
options.splice(options.length / 2, 0, Menu.line);
options.splice(Math.ceil(options.length / 2), 0, Menu.line);
}

return options;
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/3037.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [ctozlowski]
---

Fix the position of the separator in the operator menu when editing a rule

0 comments on commit 32d8304

Please sign in to comment.