feat(base/ui/native): Convert rem to px (#15934)

* feat(base/ui): create and use conversion helpers for tokens on mobile
This commit is contained in:
Calinteodor
2025-04-15 16:04:58 +03:00
committed by GitHub
parent ce4cbacceb
commit 057dc0e4d2
4 changed files with 48 additions and 8 deletions

View File

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