From 51ad937b99d389181866f05c13b9a1b40893678b Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Wed, 28 Aug 2024 22:38:34 +0300 Subject: [PATCH] B: Small UI fixes --- rsconcept/frontend/src/components/ui/TextArea.tsx | 3 +++ rsconcept/frontend/src/dialogs/DlgChangeLocation.tsx | 9 +-------- rsconcept/frontend/src/dialogs/DlgCloneLibraryItem.tsx | 1 - .../frontend/src/dialogs/DlgCreateCst/FormCreateCst.tsx | 9 ++++++--- .../RSFormPage/EditorConstituenta/FormConstituenta.tsx | 5 +++-- 5 files changed, 13 insertions(+), 14 deletions(-) diff --git a/rsconcept/frontend/src/components/ui/TextArea.tsx b/rsconcept/frontend/src/components/ui/TextArea.tsx index 47e8f03d..506a684b 100644 --- a/rsconcept/frontend/src/components/ui/TextArea.tsx +++ b/rsconcept/frontend/src/components/ui/TextArea.tsx @@ -6,6 +6,7 @@ import Label from './Label'; export interface TextAreaProps extends CProps.Editor, CProps.Colors, CProps.TextArea { dense?: boolean; noResize?: boolean; + fitContent?: boolean; } function TextArea({ @@ -18,6 +19,7 @@ function TextArea({ noOutline, noResize, className, + fitContent, colors = 'clr-input', ...restProps }: TextAreaProps) { @@ -40,6 +42,7 @@ function TextArea({ 'leading-tight', 'overflow-x-hidden overflow-y-auto', { + 'cc-fit-content': fitContent, 'resize-none': noResize, 'border': !noBorder, 'flex-grow max-w-full': dense, diff --git a/rsconcept/frontend/src/dialogs/DlgChangeLocation.tsx b/rsconcept/frontend/src/dialogs/DlgChangeLocation.tsx index cd71d0a6..627c7211 100644 --- a/rsconcept/frontend/src/dialogs/DlgChangeLocation.tsx +++ b/rsconcept/frontend/src/dialogs/DlgChangeLocation.tsx @@ -59,14 +59,7 @@ function DlgChangeLocation({ hideWindow, initial, onChangeLocation }: DlgChangeL onChange={handleSelectLocation} className='max-h-[9.2rem]' /> -