From 622464f85ea252990659540deea94ed0111d7cef Mon Sep 17 00:00:00 2001 From: loucass003 Date: Thu, 10 Sep 2026 09:43:01 +0200 Subject: [PATCH] Slightly improved looks of core components --- gui/app/src/components/commons/Button.tsx | 2 +- gui/app/src/components/commons/Checkbox.tsx | 2 +- gui/app/src/components/commons/Dropdown.tsx | 56 ++++++++--- .../src/components/commons/FloatingLabel.tsx | 43 +++++++++ gui/app/src/components/commons/Input.tsx | 36 ++++++- .../src/components/commons/NumberSelector.tsx | 95 ++++++++++--------- .../firmware-tool/steps/BoardDefaultsStep.tsx | 9 +- .../pages/components/TapDetectionSettings.tsx | 72 ++++++-------- gui/app/src/index.scss | 11 +++ 9 files changed, 212 insertions(+), 114 deletions(-) create mode 100644 gui/app/src/components/commons/FloatingLabel.tsx diff --git a/gui/app/src/components/commons/Button.tsx b/gui/app/src/components/commons/Button.tsx index e4f2d0d3e..e5a776d07 100644 --- a/gui/app/src/components/commons/Button.tsx +++ b/gui/app/src/components/commons/Button.tsx @@ -96,7 +96,7 @@ export function Button({ 'focus:ring-4 text-center relative flex items-center justify-center', { 'rounded-full p-2 text-center min-h-[35px] min-w-[35px]': rounded, - 'rounded-md px-5 py-2.5': !rounded, + 'rounded-md px-5 py-3 min-h-[48px]': !rounded, }, props.className ); diff --git a/gui/app/src/components/commons/Checkbox.tsx b/gui/app/src/components/commons/Checkbox.tsx index 4aecf9eff..8671928cb 100644 --- a/gui/app/src/components/commons/Checkbox.tsx +++ b/gui/app/src/components/commons/Checkbox.tsx @@ -67,7 +67,7 @@ export const CheckboxInternal = forwardRef< >