From e0e8ce633b5b1c8ec1840a541fd033940bb6b44b Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Tue, 23 Apr 2024 12:53:52 +0530 Subject: [PATCH] [WEB-1027] fix: overflow & alignment fixes (#4234) * fix: list layout issue title overflow * fix: project feature toggle modal project name overflow * fix: app sidebar project section alignment * fix: issue title textarea * fix: create issue modal project select overflow * fix: module and cycle applied filters overflow fix --- packages/ui/src/form-fields/textarea.tsx | 14 +------------- web/components/dropdowns/project.tsx | 2 +- .../filters/applied-filters/cycle.tsx | 4 ++-- .../filters/applied-filters/filters-list.tsx | 4 ++-- .../filters/applied-filters/module.tsx | 4 ++-- web/components/issues/issue-layouts/list/block.tsx | 12 ++++++------ web/components/project/project-feature-update.tsx | 4 ++-- web/components/project/sidebar-list-item.tsx | 2 +- 8 files changed, 17 insertions(+), 29 deletions(-) diff --git a/packages/ui/src/form-fields/textarea.tsx b/packages/ui/src/form-fields/textarea.tsx index de225d68f..2c47a65f5 100644 --- a/packages/ui/src/form-fields/textarea.tsx +++ b/packages/ui/src/form-fields/textarea.tsx @@ -11,17 +11,7 @@ export interface TextAreaProps extends React.TextareaHTMLAttributes((props, ref) => { - const { - id, - name, - value = "", - rows = 1, - cols = 1, - mode = "primary", - hasError = false, - className = "", - ...rest - } = props; + const { id, name, value = "", mode = "primary", hasError = false, className = "", ...rest } = props; // refs const textAreaRef = useRef(ref); // auto re-size @@ -33,8 +23,6 @@ const TextArea = React.forwardRef((props, re name={name} ref={textAreaRef} value={value} - rows={rows} - cols={cols} className={cn( "no-scrollbar w-full bg-transparent px-3 py-2 placeholder-custom-text-400 outline-none", { diff --git a/web/components/dropdowns/project.tsx b/web/components/dropdowns/project.tsx index 95ed8cd62..e281db07b 100644 --- a/web/components/dropdowns/project.tsx +++ b/web/components/dropdowns/project.tsx @@ -176,7 +176,7 @@ export const ProjectDropdown: React.FC = observer((props) => { )} {BUTTON_VARIANTS_WITH_TEXT.includes(buttonVariant) && ( - {selectedProject?.name ?? placeholder} + {selectedProject?.name ?? placeholder} )} {dropdownArrow && (