From df06e7a7b9b485cdbfaaa484a228656a4201c907 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Wed, 5 Feb 2025 12:13:05 +0300 Subject: [PATCH] B: Fix margin --- rsconcept/frontend/src/components/ui/TextArea.tsx | 2 +- rsconcept/frontend/src/components/ui/TextInput.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rsconcept/frontend/src/components/ui/TextArea.tsx b/rsconcept/frontend/src/components/ui/TextArea.tsx index d30c0b60..55b2df0d 100644 --- a/rsconcept/frontend/src/components/ui/TextArea.tsx +++ b/rsconcept/frontend/src/components/ui/TextArea.tsx @@ -57,7 +57,7 @@ function TextArea({ 'resize-none': noResize, 'border': !noBorder, 'flex-grow max-w-full': dense, - 'mt-2': !dense, + 'mt-2': !dense && !!label, 'clr-outline': !noOutline }, colors, diff --git a/rsconcept/frontend/src/components/ui/TextInput.tsx b/rsconcept/frontend/src/components/ui/TextInput.tsx index a07f8c8d..6986707c 100644 --- a/rsconcept/frontend/src/components/ui/TextInput.tsx +++ b/rsconcept/frontend/src/components/ui/TextInput.tsx @@ -55,7 +55,7 @@ function TextInput({ { 'px-3': !noBorder || !disabled, 'flex-grow max-w-full': dense, - 'mt-2': !dense, + 'mt-2': !dense && !!label, 'border': !noBorder, 'clr-outline': !noOutline },