From 88fca3c67cd2e1154f9a4ff7cae336356cdaba97 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Tue, 7 Mar 2023 20:27:16 +0530 Subject: [PATCH] fix: ui fixes (#392) * fix: ui fixes * chore: kanban issue title length --- .../components/core/board-view/all-boards.tsx | 2 +- .../core/board-view/single-board.tsx | 2 +- .../core/board-view/single-issue.tsx | 10 +++--- .../modules/sidebar-select/select-lead.tsx | 5 +-- .../modules/sidebar-select/select-members.tsx | 2 ++ .../components/ui/custom-search-select.tsx | 34 ++++++++++++++++--- 6 files changed, 42 insertions(+), 13 deletions(-) diff --git a/apps/app/components/core/board-view/all-boards.tsx b/apps/app/components/core/board-view/all-boards.tsx index f8ab8ff7f..b81c3238f 100644 --- a/apps/app/components/core/board-view/all-boards.tsx +++ b/apps/app/components/core/board-view/all-boards.tsx @@ -40,7 +40,7 @@ export const AllBoards: React.FC = ({ <> {groupedByIssues ? (
-
+
{Object.keys(groupedByIssues).map((singleGroup, index) => { const currentState = selectedGroup === "state_detail.name" diff --git a/apps/app/components/core/board-view/single-board.tsx b/apps/app/components/core/board-view/single-board.tsx index d1d3154c5..02efb9e73 100644 --- a/apps/app/components/core/board-view/single-board.tsx +++ b/apps/app/components/core/board-view/single-board.tsx @@ -104,7 +104,7 @@ export const SingleBoard: React.FC = ({
= ({ className="text-sm group-hover:text-theme" style={{ lineClamp: 3, WebkitLineClamp: 3 }} > - {issue.name} + {truncateText(issue.name, 100)}
- {properties.priority && selectedGroup !== "priority" && ( + {properties.priority && ( = ({ selfPositioned /> )} - {properties.state && selectedGroup !== "state_detail.name" && ( + {properties.state && ( = ({ value, onChange }) => { return (
-
Lead @@ -85,6 +84,8 @@ export const SidebarLeadSelect: React.FC = ({ value, onChange }) => {
} options={options} + height="md" + position="right" onChange={onChange} />
diff --git a/apps/app/components/modules/sidebar-select/select-members.tsx b/apps/app/components/modules/sidebar-select/select-members.tsx index f0bf0c28a..ba00f3246 100644 --- a/apps/app/components/modules/sidebar-select/select-members.tsx +++ b/apps/app/components/modules/sidebar-select/select-members.tsx @@ -71,6 +71,8 @@ export const SidebarMembersSelect: React.FC = ({ value, onChange }) => { } options={options} onChange={onChange} + height="md" + position="right" multiple />
diff --git a/apps/app/components/ui/custom-search-select.tsx b/apps/app/components/ui/custom-search-select.tsx index a90ca973a..8121405eb 100644 --- a/apps/app/components/ui/custom-search-select.tsx +++ b/apps/app/components/ui/custom-search-select.tsx @@ -15,6 +15,7 @@ type CustomSearchSelectProps = { }[]; label?: string | JSX.Element; textAlignment?: "left" | "center" | "right"; + height?: "sm" | "md" | "rg" | "lg"; position?: "right" | "left"; noChevron?: boolean; customButton?: JSX.Element; @@ -28,6 +29,7 @@ type CustomSearchSelectProps = { export const CustomSearchSelect = ({ label, textAlignment, + height = "sm", value, onChange, options, @@ -95,7 +97,7 @@ export const CustomSearchSelect = ({
@@ -106,7 +108,19 @@ export const CustomSearchSelect = ({ displayValue={(assigned: any) => assigned?.name} />
-
+
{filteredOptions ? ( filteredOptions.length > 0 ? ( filteredOptions.map((option) => ( @@ -192,7 +206,7 @@ export const CustomSearchSelect = ({
@@ -203,7 +217,19 @@ export const CustomSearchSelect = ({ displayValue={(assigned: any) => assigned?.name} />
-
+
{filteredOptions ? ( filteredOptions.length > 0 ? ( filteredOptions.map((option) => (