ref(theme): revert spacing to number and not rem.

There are still many places where theme.spacing is expected to be number. Reverting parts of 057dc0e4d2 .
This commit is contained in:
Hristo Terezov
2025-05-09 12:18:41 -05:00
parent f2babbf994
commit 3d5c08d86f
4 changed files with 4 additions and 5 deletions

View File

@@ -213,7 +213,7 @@ const ContextMenu = ({
if (offsetTop + height > offsetHeight + scrollTop && height > offsetTop) {
// top offset and + padding + border
container.style.maxHeight = `calc(${offsetTop}px - (${spacing[2]} * 2 + 2px))`;
container.style.maxHeight = `${offsetTop - ((spacing[2] * 2) + 2)}px`;
}
// get the height after style changes