From 594c9a99ce8ddead856cde1d80d72a08c30d57e9 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Mon, 17 Nov 2025 18:48:41 +0000 Subject: [PATCH] Enhance UrlDisplay component with improved styling for responsive text and link handling --- .../Dashboard/common/UrlDisplay.jsx | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/components/Dashboard/common/UrlDisplay.jsx b/src/components/Dashboard/common/UrlDisplay.jsx index ada9715..c417b59 100644 --- a/src/components/Dashboard/common/UrlDisplay.jsx +++ b/src/components/Dashboard/common/UrlDisplay.jsx @@ -10,19 +10,30 @@ const UrlDisplay = ({ url, showCopy = true, showLink = false }) => { return ( <> - + {showLink ? ( - {url} + + {url} + ) : ( <> - + {url} @@ -30,7 +41,7 @@ const UrlDisplay = ({ url, showCopy = true, showLink = false }) => { icon={} type='text' size='small' - style={{ minWidth: 25 }} + style={{ minWidth: 25, flexShrink: 0 }} onClick={(e) => { e.preventDefault() window.open(url, '_blank', 'noopener,noreferrer')