Fix the position of the separator in the operator menu when editing a rule (#3037)

* Fix line separator position in operations menu

* release note
This commit is contained in:
Chris Tozlowski
2024-07-12 11:20:44 -04:00
committed by GitHub
parent 4575616961
commit 32d830440a
2 changed files with 7 additions and 1 deletions

View File

@@ -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;

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [ctozlowski]
---
Fix the position of the separator in the operator menu when editing a rule