diff --git a/clients/web/src/components/atoms/InlineError/InlineError.tsx b/clients/web/src/components/atoms/InlineError/InlineError.tsx index e08dabaa..bca095c2 100644 --- a/clients/web/src/components/atoms/InlineError/InlineError.tsx +++ b/clients/web/src/components/atoms/InlineError/InlineError.tsx @@ -16,28 +16,33 @@ export function InlineError({ maxRetries, docLink, }: InlineErrorProps) { + const hasDetails = + retryCount !== undefined || details !== undefined || docLink !== undefined; + return ( - - {retryCount !== undefined && ( - - Retry attempt {retryCount} - {maxRetries !== undefined && ` of ${maxRetries}`} - - )} - {details && ( - - {details} - - )} - {docLink && ( - - - View Troubleshooting Guide → - - - )} - + {hasDetails && ( + + {retryCount !== undefined && ( + + Retry attempt {retryCount} + {maxRetries !== undefined && ` of ${maxRetries}`} + + )} + {details && ( + + {details} + + )} + {docLink && ( + + + View Troubleshooting Guide → + + + )} + + )} ); } diff --git a/clients/web/src/components/molecules/ElicitationUrlPanel/ElicitationUrlPanel.tsx b/clients/web/src/components/molecules/ElicitationUrlPanel/ElicitationUrlPanel.tsx index c60486f7..dd924368 100644 --- a/clients/web/src/components/molecules/ElicitationUrlPanel/ElicitationUrlPanel.tsx +++ b/clients/web/src/components/molecules/ElicitationUrlPanel/ElicitationUrlPanel.tsx @@ -35,7 +35,9 @@ export function ElicitationUrlPanel({ The server is requesting you visit: - {url} + + {url} +