From 4512651f8b564df8ffcbb452bd9eb11b5de8f601 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Thu, 2 Nov 2023 16:01:49 +0530 Subject: [PATCH] fix: spreadsheet view properties fix (#2599) --- .../issues/issue-layouts/properties/assignee.tsx | 7 +++++-- web/components/issues/issue-layouts/properties/labels.tsx | 8 +++++++- web/components/issues/issue-layouts/properties/state.tsx | 8 ++++---- .../issue-layouts/spreadsheet/columns/assignee-column.tsx | 4 +++- .../spreadsheet/columns/created-on-column.tsx | 4 +++- .../issue-layouts/spreadsheet/columns/due-date-column.tsx | 2 ++ .../issue-layouts/spreadsheet/columns/estimate-column.tsx | 2 ++ .../issue-layouts/spreadsheet/columns/label-column.tsx | 5 +++-- .../issue-layouts/spreadsheet/columns/priority-column.tsx | 4 ++-- .../spreadsheet/columns/start-date-column.tsx | 2 ++ .../issue-layouts/spreadsheet/columns/state-column.tsx | 3 ++- .../spreadsheet/columns/updated-on-column.tsx | 4 +++- web/components/issues/view-select/due-date.tsx | 8 ++++++-- web/components/issues/view-select/start-date.tsx | 8 ++++++-- 14 files changed, 50 insertions(+), 19 deletions(-) diff --git a/web/components/issues/issue-layouts/properties/assignee.tsx b/web/components/issues/issue-layouts/properties/assignee.tsx index 5e89021ad..ee545f3a5 100644 --- a/web/components/issues/issue-layouts/properties/assignee.tsx +++ b/web/components/issues/issue-layouts/properties/assignee.tsx @@ -21,6 +21,7 @@ export interface IIssuePropertyAssignee { optionsClassName?: string; placement?: Placement; multiple?: true; + noLabelBorder?: boolean; } export const IssuePropertyAssignee: React.FC = observer((props) => { @@ -36,6 +37,7 @@ export const IssuePropertyAssignee: React.FC = observer( optionsClassName, placement, multiple = false, + noLabelBorder = false, } = props; const { workspace: workspaceStore, project: projectStore } = useMobxStore(); @@ -91,8 +93,9 @@ export const IssuePropertyAssignee: React.FC = observer( ) : ( diff --git a/web/components/issues/issue-layouts/properties/labels.tsx b/web/components/issues/issue-layouts/properties/labels.tsx index 3caa4d779..d9c9d3826 100644 --- a/web/components/issues/issue-layouts/properties/labels.tsx +++ b/web/components/issues/issue-layouts/properties/labels.tsx @@ -25,6 +25,7 @@ export interface IIssuePropertyLabels { optionsClassName?: string; placement?: Placement; maxRender?: number; + noLabelBorder?: boolean; } export const IssuePropertyLabels: React.FC = observer((props) => { @@ -40,6 +41,7 @@ export const IssuePropertyLabels: React.FC = observer((pro optionsClassName, placement, maxRender = 2, + noLabelBorder = false, } = props; const { workspace: workspaceStore, project: projectStore }: RootStore = useMobxStore(); @@ -149,7 +151,11 @@ export const IssuePropertyLabels: React.FC = observer((pro ) ) : ( -
+
Select labels
)} diff --git a/web/components/issues/issue-layouts/properties/state.tsx b/web/components/issues/issue-layouts/properties/state.tsx index ea23ccfcc..35fea87ae 100644 --- a/web/components/issues/issue-layouts/properties/state.tsx +++ b/web/components/issues/issue-layouts/properties/state.tsx @@ -35,9 +35,9 @@ export const IssuePropertyState: React.FC = observer((props onChange, disabled, hideDropdownArrow = false, - className, - buttonClassName, - optionsClassName, + className = "", + buttonClassName = "", + optionsClassName = "", placement, } = props; @@ -110,7 +110,7 @@ export const IssuePropertyState: React.FC = observer((props