From a7d7a9b7b38182f763dc760eb88c994b25d1e942 Mon Sep 17 00:00:00 2001 From: dblythy Date: Thu, 29 Jun 2023 15:54:33 +1000 Subject: [PATCH] fix: separator offset incorrect --- src/components/CategoryList/CategoryList.react.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/CategoryList/CategoryList.react.js b/src/components/CategoryList/CategoryList.react.js index 5b901d81e3..afce681dfe 100644 --- a/src/components/CategoryList/CategoryList.react.js +++ b/src/components/CategoryList/CategoryList.react.js @@ -66,7 +66,10 @@ export default class CategoryList extends React.Component { this.highlight.style.top = height + 'px'; return; } - if (this.state.openClasses.includes(id)) { + if (id === 'classSeparator') { + height += 13; + } + else if (this.state.openClasses.includes(id)) { height = height + (20 * (c.filters.length + 1)) } else { height += 20;