diff --git a/app/components/EquivalentCliCommand.tsx b/app/components/EquivalentCliCommand.tsx index 9aa882f6a..9fb01aa87 100644 --- a/app/components/EquivalentCliCommand.tsx +++ b/app/components/EquivalentCliCommand.tsx @@ -31,7 +31,12 @@ export function EquivalentCliCommand({ command }: { command: string }) { return ( <> - diff --git a/app/components/ErrorPage.tsx b/app/components/ErrorPage.tsx index 8292e38af..e68653264 100644 --- a/app/components/ErrorPage.tsx +++ b/app/components/ErrorPage.tsx @@ -41,7 +41,7 @@ export function ErrorPage({ children }: Props) { -
+
diff --git a/app/components/MswBanner.tsx b/app/components/MswBanner.tsx index a22f9bd7a..0e684892d 100644 --- a/app/components/MswBanner.tsx +++ b/app/components/MswBanner.tsx @@ -5,7 +5,7 @@ * * Copyright Oxide Computer Company */ -import { useState, type ReactNode } from 'react' +import { useEffect, useState, type ReactNode } from 'react' import { Info16Icon, NextArrow12Icon } from '@oxide/design-system/icons/react' @@ -29,10 +29,18 @@ function ExternalLink({ href, children }: { href: string; children: ReactNode }) export function MswBanner() { const [isOpen, setIsOpen] = useState(false) const closeModal = () => setIsOpen(false) + + useEffect(() => { + document.body.classList.add('msw-banner') + + return () => { + document.body.classList.remove('msw-banner') + } + }, []) + return ( <> - {/* The [&+*]:pt-10 style is to ensure the page container isn't pushed out of screen as it uses 100vh for layout */} -