diff --git a/package-lock.json b/package-lock.json index d33975f..c8e325d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -61,6 +61,7 @@ "react-markdown": "^10.1.0", "react-medium-image-zoom": "^5.4.0", "react-mosaic-component": "^6.1.1", + "react-resizable-panels": "^4.4.0", "react-router": "^7.1.0", "react-virtuoso": "^4.17.0", "remark-gfm": "^4.0.1", @@ -10346,6 +10347,16 @@ } } }, + "node_modules/react-resizable-panels": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/react-resizable-panels/-/react-resizable-panels-4.4.0.tgz", + "integrity": "sha512-vGH1rIhyDOL4RSWYTx3eatjDohDFIRxJCAXUOaeL9HyamptUnUezqndjMtBo9hQeaq1CIP0NBbc7ZV3lBtlgxA==", + "license": "MIT", + "peerDependencies": { + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + } + }, "node_modules/react-router": { "version": "7.9.6", "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.9.6.tgz", diff --git a/package.json b/package.json index 79ed59a..fafc01e 100644 --- a/package.json +++ b/package.json @@ -69,6 +69,7 @@ "react-markdown": "^10.1.0", "react-medium-image-zoom": "^5.4.0", "react-mosaic-component": "^6.1.1", + "react-resizable-panels": "^4.4.0", "react-router": "^7.1.0", "react-virtuoso": "^4.17.0", "remark-gfm": "^4.0.1", diff --git a/src/components/GroupListViewer.tsx b/src/components/GroupListViewer.tsx index 1f79621..cba0468 100644 --- a/src/components/GroupListViewer.tsx +++ b/src/components/GroupListViewer.tsx @@ -1,7 +1,12 @@ -import { useState, useMemo, useCallback, memo } from "react"; +import { useState, useMemo, memo } from "react"; import { use$ } from "applesauce-react/hooks"; import { map } from "rxjs/operators"; -import { Loader2, MessageSquare, GripVertical } from "lucide-react"; +import { Loader2 } from "lucide-react"; +import { + ResizableHandle, + ResizablePanel, + ResizablePanelGroup, +} from "react-resizable-panels"; import eventStore from "@/services/event-store"; import pool from "@/services/relay-pool"; import accountManager from "@/services/accounts"; @@ -65,26 +70,30 @@ const GroupListItem = memo(function GroupListItem({ onClick={onClick} >