From 3a7055df59195ea6cba75ff5e1bd8018bca4d9ee Mon Sep 17 00:00:00 2001 From: Ian Hunt-Isaak Date: Fri, 6 Jun 2025 11:09:54 -0400 Subject: [PATCH] UI: Make banner width match content + round corners --- src/components/banner.js | 60 +++++++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 26 deletions(-) diff --git a/src/components/banner.js b/src/components/banner.js index c689f8143..c3615b1af 100644 --- a/src/components/banner.js +++ b/src/components/banner.js @@ -5,6 +5,7 @@ import { AlertTitle, Box, CloseButton, + Container, useDisclosure, } from '@chakra-ui/react' @@ -16,34 +17,41 @@ export const Banner = ({ title, description, children }) => { } = useDisclosure({ defaultIsOpen: true }) return isVisible ? ( - - - - - {' '} - {/* Container for text content, allows vertical flow */} - {title} - {description && ( - {description} - )} - + + {' '} + {/* This Box provides top padding to clear the header */} + + {' '} + {/* Constrains the width of the banner */} + + + {' '} - {/* Wrapper for children, e.g., links */} - {children} + {/* Container for text content, allows vertical flow */} + {title} + {description && ( + {description} + )} + + {' '} + {/* Wrapper for children, e.g., links */} + {children} + - - - + + + ) : ( <>