From 4ae5fb72154cf0ebfd6c1763a5e5e2fb560fd1b5 Mon Sep 17 00:00:00 2001 From: Polymoria <99086355+Polymoria@users.noreply.github.com> Date: Sun, 15 Jun 2025 11:54:29 +0200 Subject: [PATCH] Manual proportions visual fixes (#1449) Co-authored-by: lucas lelievre --- .../body-proportions/BodyProportions.tsx | 92 +++++++++++-------- 1 file changed, 54 insertions(+), 38 deletions(-) diff --git a/gui/src/components/onboarding/pages/body-proportions/BodyProportions.tsx b/gui/src/components/onboarding/pages/body-proportions/BodyProportions.tsx index 7fc25d64c..675a924aa 100644 --- a/gui/src/components/onboarding/pages/body-proportions/BodyProportions.tsx +++ b/gui/src/components/onboarding/pages/body-proportions/BodyProportions.tsx @@ -17,16 +17,19 @@ import { Tooltip } from '@/components/commons/Tooltip'; function IncrementButton({ children, onClick, + bgDark, }: { children: ReactNode; onClick?: MouseEventHandler; + bgDark: boolean; }) { return (
@@ -128,43 +131,51 @@ function ProportionItem({ 'duration-300' )} > - - - - } - preferedDirection="bottom" - mode="corner" - > -
- - {l10n.getString(part.label)} - -
-
+
+ + {l10n.getString(part.label)} + + + + + } + preferedDirection="bottom" + mode="corner" + > +
+ i +
+
+
+
{!precise && ( - boneIncrement(-5)}> + boneIncrement(-5)} + > {configFormat.format(-5)} )} - boneIncrement(-1)}> + boneIncrement(-1)} + > {configFormat.format(-1)} {precise && ( - boneIncrement(-0.5)}> + boneIncrement(-0.5)} + > {configFormat.format(-0.5)} )} @@ -181,23 +192,27 @@ function ProportionItem({ )}
{precise && ( - boneIncrement(+0.5)}> + boneIncrement(+0.5)} + > {configFormat.format(+0.5)} )} - boneIncrement(+1)}> + boneIncrement(+1)} + > {configFormat.format(+1)} {!precise && ( - boneIncrement(+5)}> + boneIncrement(+5)} + > {configFormat.format(+5)} )} @@ -208,7 +223,8 @@ function ProportionItem({