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: add CSS min-width 300px on center area to prevent flex collapse

nash_su449a9aa57d80
diff --git a/src/components/layout/app-layout.tsx b/src/components/layout/app-layout.tsx
index e2ea96df..a5204c8e 100644
--- a/src/components/layout/app-layout.tsx
+++ b/src/components/layout/app-layout.tsx
@@ -57,8 +57,8 @@ export function AppLayout({ onSwitchProject }: AppLayoutProps) {
if (!containerRef.current) return
const totalWidth = containerRef.current.getBoundingClientRect().width
const minCenter = 300
- // Account for drag handles (~6px total)
- const handles = 6
+ // Account for drag handles (6px each, up to 2 when right panel open)
+ const handles = 12
if (isDraggingLeft.current) {
const newWidth = e.clientX - containerRef.current.getBoundingClientRect().left
@@ -107,7 +107,7 @@ export function AppLayout({ onSwitchProject }: AppLayoutProps) {
/>
{/* Center: Chat or view (sources/settings/review) */}
- <div className="min-w-0 flex-1 overflow-hidden">
+ <div className="flex-1 overflow-hidden" style={{ minWidth: 300 }}>
<ContentArea />
</div>