mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix(electron): electron fallback container should not contain tabs header (#10826)
 fix double tabs header issue when loading from external url
This commit is contained in:
@@ -64,16 +64,18 @@ const DesktopLayout = ({
|
||||
const isInWorkspace = !!workspaceService;
|
||||
return (
|
||||
<div className={styles.desktopAppViewContainer}>
|
||||
<div className={styles.desktopTabsHeader}>
|
||||
<AppTabsHeader
|
||||
left={
|
||||
<>
|
||||
{isInWorkspace && <SidebarSwitch show />}
|
||||
{isInWorkspace && <NavigationButtons />}
|
||||
</>
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
{!fallback ? (
|
||||
<div className={styles.desktopTabsHeader}>
|
||||
<AppTabsHeader
|
||||
left={
|
||||
<>
|
||||
{isInWorkspace && <SidebarSwitch show />}
|
||||
{isInWorkspace && <NavigationButtons />}
|
||||
</>
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
) : null}
|
||||
<div className={styles.desktopAppViewMain}>
|
||||
{fallback ? (
|
||||
<AppSidebarFallback />
|
||||
|
||||
Reference in New Issue
Block a user