fix: fixed layout shift issue of top banner (#9791)

pull/9781/head^2
Ayush Mainali 2023-06-26 17:57:57 +05:45 committed by GitHub
parent eedf6913b8
commit f7b20da640
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -199,8 +199,8 @@ const Layout = (props: LayoutProps) => {
{/* todo: only run this if timezone is different */}
<TimezoneChangeDialog />
<div style={{ paddingTop: `${bannersHeight}px` }} className="flex min-h-screen flex-col">
<div ref={bannerRef} className="fixed top-0 z-10 w-full divide-y divide-black">
<div className="flex min-h-screen flex-col">
<div ref={bannerRef} className="sticky top-0 z-10 w-full divide-y divide-black">
<TeamsUpgradeBanner />
<OrgUpgradeBanner />
<ImpersonatingBanner />