Skip to content

Commit

Permalink
fix(ui): fix display banner when not explicit set position
Browse files Browse the repository at this point in the history
  • Loading branch information
linghaoSu committed Jan 4, 2024
1 parent 1975074 commit 605d386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/ui-banner/ui-banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const Banner = (props: React.Props<any>) => {
chatUrl = 'invalid-url';
}
}
const shouldRenderTop = position === 'top' || position === 'both';
const shouldRenderTop = position === 'top' || position === 'both' || (!position && content);
const shouldRenderBottom = position === 'bottom' || position === 'both';
return (
<React.Fragment>
Expand Down

0 comments on commit 605d386

Please sign in to comment.