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: force popup to 500px, dynamically size preview to prevent any scrollbar
nash_su269b2514ef42
diff --git a/extension/popup.html b/extension/popup.htmlindex 1b654127..cd87543b 100644--- a/extension/popup.html+++ b/extension/popup.html@@ -4,17 +4,15 @@<meta charset="utf-8"><style>* { margin: 0; padding: 0; box-sizing: border-box; }- html {- width: 480px;- overflow: hidden;- }- body {+ html, body {width: 480px;+ height: 500px;+ max-height: 500px;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;font-size: 13px;color: #1a1a2e;background: #fafafa;- overflow: hidden;+ overflow: hidden !important;}.header {padding: 12px 16px;diff --git a/extension/popup.js b/extension/popup.jsindex 84021651..978e8d39 100644--- a/extension/popup.js+++ b/extension/popup.js@@ -244,7 +244,21 @@ async function sendClip() {clipBtn.addEventListener("click", sendClip);+// Resize content preview to fill available space without causing popup scroll+function resizePreview() {+ const totalHeight = 500; // matches html/body height+ const preview = document.getElementById("contentPreview");+ if (!preview) return;++ // Calculate space used by everything except the preview+ const previewRect = preview.getBoundingClientRect();+ const bottomSpace = totalHeight - previewRect.top - 60; // 60px for button + footer+ const maxH = Math.max(100, Math.min(300, bottomSpace));+ preview.style.maxHeight = maxH + "px";+}+(async () => {const connected = await checkConnection();if (connected) await extractContent();+ setTimeout(resizePreview, 100);})();