Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(pdf): move modal wrapper to hotfix pdfs (#1608)

Seamus2eca813c784a
diff --git a/js/app/packages/block-pdf/component/Block.tsx b/js/app/packages/block-pdf/component/Block.tsx
index 6a3c5cb7d9..4aa43b1f07 100644
--- a/js/app/packages/block-pdf/component/Block.tsx
+++ b/js/app/packages/block-pdf/component/Block.tsx
@@ -190,34 +190,34 @@ export default function BlockPdf() {
return (
<DocumentBlockContainer>
- <ModalsProvider>
- <div
- class="w-full h-full bg-panel select-none overscroll-none overflow-hidden flex flex-col"
- onContextMenu={(e) => e.preventDefault()}
- data-tut="App"
- >
- <Show when={!isNestedBlock}>
+ <div
+ class="w-full h-full bg-panel select-none overscroll-none overflow-hidden flex flex-col"
+ onContextMenu={(e) => e.preventDefault()}
+ data-tut="App"
+ >
+ <Show when={!isNestedBlock}>
+ <ModalsProvider>
<TopBar />
- <Show when={showTabBar()}>
- <div class="flex px-2 justify-between min-h-11 items-center gap-2">
- <div
- class={`overflow-x-auto overflow-y-hidden grow customScrollbar w-0`}
- >
- <Tabs />
- </div>
+ </ModalsProvider>
+ <Show when={showTabBar()}>
+ <div class="flex px-2 justify-between min-h-11 items-center gap-2">
+ <div
+ class={`overflow-x-auto overflow-y-hidden grow customScrollbar w-0`}
+ >
+ <Tabs />
</div>
- </Show>
+ </div>
</Show>
- <div
- class="flex h-full w-full relative justify-end overflow-visible z-main-view-layout"
- id="main-view"
- >
- {/* {ENABLE_VIEWER_SIDE_PANEL && <ViewerNavStack />} */}
- <Document />
- {/* <CustomCursor /> */}
- </div>
+ </Show>
+ <div
+ class="flex h-full w-full relative justify-end overflow-visible z-main-view-layout"
+ id="main-view"
+ >
+ {/* {ENABLE_VIEWER_SIDE_PANEL && <ViewerNavStack />} */}
+ <Document />
+ {/* <CustomCursor /> */}
</div>
- </ModalsProvider>
+ </div>
</DocumentBlockContainer>
);
}