diff --git a/frontend/src/components/domain-warning/domain-warning.tsx b/frontend/src/components/domain-warning/domain-warning.tsx index 6af2048..42515db 100644 --- a/frontend/src/components/domain-warning/domain-warning.tsx +++ b/frontend/src/components/domain-warning/domain-warning.tsx @@ -1,12 +1,12 @@ import { Card, - CardDescription, + CardContent, CardFooter, CardHeader, CardTitle, } from "../ui/card"; import { Button } from "../ui/button"; -import { Trans, useTranslation } from "react-i18next"; +import { useTranslation } from "react-i18next"; import { useLocation } from "react-router"; interface Props { @@ -25,22 +25,25 @@ export const DomainWarning = (props: Props) => { return ( - + {t("domainWarningTitle")} - - }} - shouldUnescape={true} - /> - + +

{t("domainWarningSubtitle")}

+
+          
+            {t("domainWarningExpected")} 
+            {appUrl}
+          
+        
+
+          
+            {t("domainWarningCurrent")} 
+            {currentUrl}
+          
+        
+
- +
); diff --git a/frontend/src/index.css b/frontend/src/index.css index 09e6538..5094077 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -160,7 +160,7 @@ code { } pre { - @apply bg-accent border border-border rounded-md p-2 whitespace-break-spaces; + @apply bg-accent border border-border rounded-md p-2 whitespace-break-spaces break-all; } .lead { diff --git a/frontend/src/lib/i18n/locales/en-US.json b/frontend/src/lib/i18n/locales/en-US.json index a023bae..5a9c9b0 100644 --- a/frontend/src/lib/i18n/locales/en-US.json +++ b/frontend/src/lib/i18n/locales/en-US.json @@ -57,7 +57,9 @@ "fieldRequired": "This field is required", "invalidInput": "Invalid input", "domainWarningTitle": "Invalid Domain", - "domainWarningSubtitle": "This instance is configured to be accessed from {{appUrl}}, but {{currentUrl}} is being used. If you proceed, you may encounter issues with authentication.", + "domainWarningSubtitle": "You are accessing this instance from an incorrect domain. If you proceed, you may encounter issues with authentication.", + "domainWarningCurrent": "Current:", + "domainWarningExpected": "Expected:", "ignoreTitle": "Ignore", "goToCorrectDomainTitle": "Go to correct domain", "authorizeTitle": "Authorize", diff --git a/frontend/src/lib/i18n/locales/en.json b/frontend/src/lib/i18n/locales/en.json index a023bae..5a9c9b0 100644 --- a/frontend/src/lib/i18n/locales/en.json +++ b/frontend/src/lib/i18n/locales/en.json @@ -57,7 +57,9 @@ "fieldRequired": "This field is required", "invalidInput": "Invalid input", "domainWarningTitle": "Invalid Domain", - "domainWarningSubtitle": "This instance is configured to be accessed from {{appUrl}}, but {{currentUrl}} is being used. If you proceed, you may encounter issues with authentication.", + "domainWarningSubtitle": "You are accessing this instance from an incorrect domain. If you proceed, you may encounter issues with authentication.", + "domainWarningCurrent": "Current:", + "domainWarningExpected": "Expected:", "ignoreTitle": "Ignore", "goToCorrectDomainTitle": "Go to correct domain", "authorizeTitle": "Authorize",