From 9507bdf85c57fca8ec57c4981313c16603094226 Mon Sep 17 00:00:00 2001 From: Omri Katz <9701896+omridevk@users.noreply.github.com> Date: Wed, 4 Nov 2026 20:49:39 +0200 Subject: [PATCH] fix(hub-ui): parse safe-area insets as pixel values The computed insets are strings like "34px", so unary plus gave NaN and the dock always treated the insets as 0. Co-Authored-By: Claude Opus 5.5 --- packages/hub-ui/src/client/components/dock/Dock.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hub-ui/src/client/components/dock/Dock.vue b/packages/hub-ui/src/client/components/dock/Dock.vue index 945601a0..eadb4936 100644 --- a/packages/hub-ui/src/client/components/dock/Dock.vue +++ b/packages/hub-ui/src/client/components/dock/Dock.vue @@ -65,7 +65,7 @@ function updateSafeArea() { } function toNumber(value: string) { - const num = +value + const num = Number.parseFloat(value) if (Number.isNaN(num)) return 0 return num