Skip to content

LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。

TypeScript

fix: prevent left panel from collapsing center content area

nash_sud0e89471d26b
diff --git a/src/components/layout/app-layout.tsx b/src/components/layout/app-layout.tsx
index 1af293f8..06a947eb 100644
--- a/src/components/layout/app-layout.tsx
+++ b/src/components/layout/app-layout.tsx
@@ -53,7 +53,11 @@ export function AppLayout({ onSwitchProject }: AppLayoutProps) {
if (isDraggingLeft.current) {
const newWidth = e.clientX - rect.left
- setLeftWidth(Math.max(150, Math.min(rect.width * 0.3, newWidth)))
+ // Ensure center area keeps at least 300px
+ const rightEl = containerRef.current.lastElementChild as HTMLElement | null
+ const currentRightWidth = rightEl?.offsetWidth ?? 0
+ const maxLeft = rect.width - currentRightWidth - 300
+ setLeftWidth(Math.max(150, Math.min(maxLeft, newWidth)))
}
if (isDraggingRight.current) {
const newWidth = rect.right - e.clientX