From 497140a6c4a29bb4b446dd3a5ffb63f3b946e6b5 Mon Sep 17 00:00:00 2001 From: stacksmash76 <98354295+stacksmash76@users.noreply.github.com> Date: Thu, 21 Jul 2022 22:02:43 +0200 Subject: [PATCH] fix(web): tooltip text wrapping (#365) --- web/src/components/data-table/Cells.tsx | 10 +++++++++- web/src/components/tooltips/Tooltip.tsx | 7 ++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/web/src/components/data-table/Cells.tsx b/web/src/components/data-table/Cells.tsx index e480aeb..5cb4dba 100644 --- a/web/src/components/data-table/Cells.tsx +++ b/web/src/components/data-table/Cells.tsx @@ -71,7 +71,15 @@ export const ReleaseStatusCell = ({ value }: ReleaseStatusCellProps) => ( {v.client &&
  • Client: {v.client}
  • } {v.filter &&
  • Filter: {v.filter}
  • }
  • Time: {simplifyDate(v.timestamp)}
  • - {v.rejections.length > 0 &&
  • Rejections: {v.rejections.toString()}
  • } + {v.rejections.length ? ( +
  • + Rejections: + {" "} +

    + {v.rejections.toString()} +

    +
  • + ) : null} diff --git a/web/src/components/tooltips/Tooltip.tsx b/web/src/components/tooltips/Tooltip.tsx index 2f5dd30..34941f1 100644 --- a/web/src/components/tooltips/Tooltip.tsx +++ b/web/src/components/tooltips/Tooltip.tsx @@ -6,9 +6,10 @@ export const Tooltip = ({ children, button } : { return (
    {button} -
    - {children} -
    +
    + + {children} +
    );