From 1d7496d57276b7fefc4a49bb529eafed576d3d12 Mon Sep 17 00:00:00 2001 From: Linghao Su Date: Wed, 24 Jan 2024 01:09:00 +0800 Subject: [PATCH] fix(ui): fix display banner when not explicit set position (#16741) Signed-off-by: linghaoSu Signed-off-by: Kevin Lyda --- ui/src/app/ui-banner/ui-banner.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/app/ui-banner/ui-banner.tsx b/ui/src/app/ui-banner/ui-banner.tsx index 29dbc45eadfbc..ac097bca55163 100644 --- a/ui/src/app/ui-banner/ui-banner.tsx +++ b/ui/src/app/ui-banner/ui-banner.tsx @@ -116,7 +116,7 @@ export const Banner = (props: React.Props) => { chatUrl = 'invalid-url'; } } - const shouldRenderTop = position === 'top' || position === 'both'; + const shouldRenderTop = position === 'top' || position === 'both' || (!position && content); const shouldRenderBottom = position === 'bottom' || position === 'both'; return (