From e382135384f62704d23089231cc11a8c52b88a64 Mon Sep 17 00:00:00 2001 From: Scott Wilson Date: Mon, 28 Oct 2024 16:43:15 -0700 Subject: [PATCH] improvements: make banner full width and adjust icon/margins --- frontend/src/layouts/AppLayout/AppLayout.tsx | 2 +- .../InsecureConnectionBanner.tsx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/layouts/AppLayout/AppLayout.tsx b/frontend/src/layouts/AppLayout/AppLayout.tsx index 89b7c7795..01eb4c58e 100644 --- a/frontend/src/layouts/AppLayout/AppLayout.tsx +++ b/frontend/src/layouts/AppLayout/AppLayout.tsx @@ -362,6 +362,7 @@ export const AppLayout = ({ children }: LayoutProps) => { return ( <>
+ {!window.isSecureContext && }
diff --git a/frontend/src/layouts/AppLayout/components/InsecureConnectionBanner/InsecureConnectionBanner.tsx b/frontend/src/layouts/AppLayout/components/InsecureConnectionBanner/InsecureConnectionBanner.tsx index 42bb433d8..fbef45185 100644 --- a/frontend/src/layouts/AppLayout/components/InsecureConnectionBanner/InsecureConnectionBanner.tsx +++ b/frontend/src/layouts/AppLayout/components/InsecureConnectionBanner/InsecureConnectionBanner.tsx @@ -1,5 +1,5 @@ import { useState } from "react"; -import { faWarning, faX } from "@fortawesome/free-solid-svg-icons"; +import { faWarning, faXmark } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { IconButton } from "@app/components/v2"; @@ -17,9 +17,9 @@ export const InsecureConnectionBanner = () => { if (isAcknowledged) return null; return ( -
- - +
+ + Your connection to this Infisical instance is not secured via HTTPS. Some features may not behave as expected. @@ -30,7 +30,7 @@ export const InsecureConnectionBanner = () => { onClick={handleDismiss} ariaLabel="Dismiss banner" > - +
);