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

This commit is contained in:
Ayush Mainali
2023-06-26 14:12:57 +02:00
committed by GitHub
parent eedf6913b8
commit f7b20da640
+2 -2
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 />