From 79eff7b44a0dcb3661bfb6840d2a241f05945540 Mon Sep 17 00:00:00 2001 From: Tamay Eser Uysal Date: Fri, 17 Apr 2020 22:13:01 +0300 Subject: [PATCH 1/3] Now we don't expand description on sidebar when there is no description --- src/TaskDescriptionSidebarBox/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TaskDescriptionSidebarBox/index.js b/src/TaskDescriptionSidebarBox/index.js index d3a9b4a8..64518700 100644 --- a/src/TaskDescriptionSidebarBox/index.js +++ b/src/TaskDescriptionSidebarBox/index.js @@ -27,7 +27,7 @@ export const TaskDescriptionSidebarBox = ({ description }) => { } - expandedByDefault + expandedByDefault={(description && description !== "")? false : true} > From 103623f87c85e5c5b1b3aa016961c9d40f8530c0 Mon Sep 17 00:00:00 2001 From: Tamay Eser Uysal Date: Fri, 17 Apr 2020 22:41:34 +0300 Subject: [PATCH 2/3] Made latest commit prettier --- src/TaskDescriptionSidebarBox/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TaskDescriptionSidebarBox/index.js b/src/TaskDescriptionSidebarBox/index.js index 64518700..2adcbf40 100644 --- a/src/TaskDescriptionSidebarBox/index.js +++ b/src/TaskDescriptionSidebarBox/index.js @@ -27,7 +27,7 @@ export const TaskDescriptionSidebarBox = ({ description }) => { } - expandedByDefault={(description && description !== "")? false : true} + expandedByDefault={description && description !== "" ? false : true} > From 6c6ed2409687b99eab10cf458503d4feb03af11c Mon Sep 17 00:00:00 2001 From: Tamay Eser Uysal Date: Fri, 24 Apr 2020 20:13:05 +0300 Subject: [PATCH 3/3] Added is there a task description validation to showing on ui --- src/Sidebar/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sidebar/index.js b/src/Sidebar/index.js index 8afbed40..9f2b7718 100644 --- a/src/Sidebar/index.js +++ b/src/Sidebar/index.js @@ -75,7 +75,7 @@ export const Sidebar = ({ return (
{debug && } - {(taskDescription || "").length > 1 && ( + {taskDescription && (taskDescription || "").length > 1 && ( )} {labelImages && (