From 788daf361a73551500aa72ec82abb74b94207a32 Mon Sep 17 00:00:00 2001 From: amalcaraz Date: Thu, 7 Dec 2023 11:25:16 +0100 Subject: [PATCH] fix: node detail description & icons issues --- .../common/NodeDetailEditableField/cmp.tsx | 10 ++++----- .../common/NodeDetailHeader/cmp.tsx | 21 +++++++++---------- .../common/NodeDetailHeader/styles.tsx | 4 ++-- src/components/common/NodeDetailLink/cmp.tsx | 4 +++- 4 files changed, 20 insertions(+), 19 deletions(-) diff --git a/src/components/common/NodeDetailEditableField/cmp.tsx b/src/components/common/NodeDetailEditableField/cmp.tsx index bb0d3a6..f0e2b37 100644 --- a/src/components/common/NodeDetailEditableField/cmp.tsx +++ b/src/components/common/NodeDetailEditableField/cmp.tsx @@ -101,21 +101,21 @@ export const NodeDetailEditableField = memo( {...rest} /> ) : ( - <>{children ? children : value || 'NONE'} +
+ {children ? children : value || 'NONE'} +
)} {isOwner && (
diff --git a/src/components/common/NodeDetailHeader/cmp.tsx b/src/components/common/NodeDetailHeader/cmp.tsx index 118991a..bfe4748 100644 --- a/src/components/common/NodeDetailHeader/cmp.tsx +++ b/src/components/common/NodeDetailHeader/cmp.tsx @@ -83,17 +83,16 @@ export const NodeDetailHeader = memo( /> - {descriptionCtrl.field.value || - (isOwner && ( - - - - ))} + {(descriptionCtrl.field.value || isOwner) && ( + + + + )} ) }, diff --git a/src/components/common/NodeDetailHeader/styles.tsx b/src/components/common/NodeDetailHeader/styles.tsx index 6df5fe0..7cb6eea 100644 --- a/src/components/common/NodeDetailHeader/styles.tsx +++ b/src/components/common/NodeDetailHeader/styles.tsx @@ -70,7 +70,7 @@ export const StyledContainer = styled.div` export const StyledTitle = styled.h1.attrs(addClasses('tp-h5'))` ${({ theme }) => { return css` - ${tw`w-full text-ellipsis overflow-hidden whitespace-nowrap m-0 py-0.5 px-6 z-10`} + ${tw`m-0 py-0.5 px-6 z-10`} color: ${theme.color.text}; /* background-color: ${theme.color.base1}19; */ background-color: ${theme.color.base1}E5; @@ -81,7 +81,7 @@ export const StyledTitle = styled.h1.attrs(addClasses('tp-h5'))` export const StyledDescription = styled.h2.attrs(addClasses('tp-body3'))` ${({ theme }) => { return css` - ${tw`w-full text-ellipsis overflow-hidden whitespace-nowrap m-0 py-3 px-6`} + ${tw`m-0 py-3 px-6`} color: ${theme.color.text}; ` }}; diff --git a/src/components/common/NodeDetailLink/cmp.tsx b/src/components/common/NodeDetailLink/cmp.tsx index 09cce9d..aa9ff09 100644 --- a/src/components/common/NodeDetailLink/cmp.tsx +++ b/src/components/common/NodeDetailLink/cmp.tsx @@ -26,7 +26,9 @@ export const NodeDetailLink = memo( tw="flex items-center w-full" > {content} - {!isOwner && } + {!isOwner && ( + + )} ) : ( {content}