Open-source and local-first Slack and Notion alternative that puts you in control of your data
TypeScript chatchat-applicationcrdteditorelectronknowledge-baselocal-firstnotionnotion-alternativerealtime-collaborationself-hostedslacksqliteteam-collaborationwikiyjs
Fix scroll in node modal (#293)
Hakan Shehub5f5b6bc7d67
diff --git a/packages/ui/src/components/nodes/node-modal.tsx b/packages/ui/src/components/nodes/node-modal.tsxindex 375b7225..72ba1b53 100644--- a/packages/ui/src/components/nodes/node-modal.tsx+++ b/packages/ui/src/components/nodes/node-modal.tsx@@ -29,7 +29,7 @@ export const NodeModal = ({ nodeId }: NodeModalProps) => {modal={true}><DialogContent- className="w-[90vw] h-[90vh] max-w-[90vw] max-h-[90vh] min-w-[90vw] min-h-[90vh] p-2"+ className="w-[90vw] h-[90vh] max-w-[90vw] max-h-[90vh] min-w-[90vw] min-h-[90vh] p-2 overflow-hidden"showCloseButton={false}><VisuallyHidden>@@ -39,19 +39,21 @@ export const NodeModal = ({ nodeId }: NodeModalProps) => {window.</DialogDescription></VisuallyHidden>- <NodeContainer- type="modal"- nodeId={nodeId}- onFullscreen={() => {- navigate({- from: '/workspace/$userId/$nodeId/modal/$modalNodeId',- to: '/workspace/$userId/$nodeId',- params: {- nodeId: nodeId,- },- });- }}- />+ <div className="h-full w-full overflow-hidden">+ <NodeContainer+ type="modal"+ nodeId={nodeId}+ onFullscreen={() => {+ navigate({+ from: '/workspace/$userId/$nodeId/modal/$modalNodeId',+ to: '/workspace/$userId/$nodeId',+ params: {+ nodeId: nodeId,+ },+ });+ }}+ />+ </div></DialogContent></Dialog>);