Skip to content

Commit c04b9f1

Browse files
fix permission sync banner
1 parent e6960c7 commit c04b9f1

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

packages/web/src/app/(app)/layout.tsx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -168,21 +168,22 @@ export default async function Layout(props: LayoutProps) {
168168

169169
return (
170170
<SyntaxGuideProvider>
171-
{
172-
isPermissionSyncBannerVisible ? (
173-
<PermissionSyncBanner
174-
initialHasPendingFirstSync={(isServiceError(hasPendingFirstSync) || hasPendingFirstSync === null) ?
175-
false :
176-
hasPendingFirstSync.hasPendingFirstSync
177-
}
178-
/>
179-
) : null
180-
}
171+
181172
<div className="fixed inset-0 flex bg-shell">
182173
<SidebarProvider defaultOpen={cookieStore.get("sidebar_state")?.value !== "false"}>
183174
{sidebar}
184175
<div className="flex-1 min-h-0 flex flex-col pt-2 pb-2 pr-2">
185-
<div className="flex-1 min-h-0 bg-background flex flex-col border border-[#e6e6e6] dark:border-[#1d1d1f] rounded-xl">
176+
<div className="flex-1 min-h-0 bg-background flex flex-col border border-[#e6e6e6] dark:border-[#1d1d1f] rounded-xl overflow-hidden">
177+
{
178+
isPermissionSyncBannerVisible ? (
179+
<PermissionSyncBanner
180+
initialHasPendingFirstSync={(isServiceError(hasPendingFirstSync) || hasPendingFirstSync === null) ?
181+
false :
182+
hasPendingFirstSync.hasPendingFirstSync
183+
}
184+
/>
185+
) : null
186+
}
186187
<div className="flex-1 min-h-0 overflow-y-auto">
187188
{children}
188189
</div>

0 commit comments

Comments
 (0)