From efc1f5d20da2d71c21107bdeaf01c92935851d2b Mon Sep 17 00:00:00 2001 From: Raul Kele Date: Fri, 17 Feb 2023 12:21:58 +0200 Subject: [PATCH] fix: fixed in tags not wrapping correctly Signed-off-by: Raul Kele --- .../Tag/Tabs/VulnerabilitiesDetails.jsx | 55 ++++++++++--------- 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/src/components/Tag/Tabs/VulnerabilitiesDetails.jsx b/src/components/Tag/Tabs/VulnerabilitiesDetails.jsx index e00b08dc..cc7a60ae 100644 --- a/src/components/Tag/Tabs/VulnerabilitiesDetails.jsx +++ b/src/components/Tag/Tabs/VulnerabilitiesDetails.jsx @@ -150,6 +150,27 @@ function VulnerabilitiyCard(props) { } }; + const renderLoadMore = () => { + return ( + !isEndOfList && ( + + Load more + + ) + ); + }; + return ( @@ -175,31 +196,15 @@ function VulnerabilitiyCard(props) { Fixed in - - - {loadingFixed ? ( - 'Loading...' - ) : ( - <> - {renderFixedVer()} - {!isEndOfList && ( - - Load more - - )} - - )} - + + {loadingFixed ? ( + 'Loading...' + ) : ( + + {renderFixedVer()} + {renderLoadMore()} + + )} setOpenDesc(!openDesc)}>