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: unify import file and folder button styles — same icon, same variant

nash_su107c49c3af39
diff --git a/src/components/sources/sources-view.tsx b/src/components/sources/sources-view.tsx
index 6adde56b..670df73e 100644
--- a/src/components/sources/sources-view.tsx
+++ b/src/components/sources/sources-view.tsx
@@ -1,7 +1,7 @@
import { useState, useEffect, useCallback } from "react"
import { open } from "@tauri-apps/plugin-dialog"
import { invoke } from "@tauri-apps/api/core"
-import { Plus, FileText, RefreshCw, BookOpen, Trash2, FolderOpen } from "lucide-react"
+import { Plus, FileText, RefreshCw, BookOpen, Trash2 } from "lucide-react"
import { Button } from "@/components/ui/button"
import { ScrollArea } from "@/components/ui/scroll-area"
import { useWikiStore } from "@/stores/wiki-store"
@@ -350,8 +350,8 @@ export function SourcesView() {
<Plus className="mr-1 h-4 w-4" />
{importing ? t("sources.importing") : t("sources.import")}
</Button>
- <Button size="sm" variant="outline" onClick={handleImportFolder} disabled={importing}>
- <FolderOpen className="mr-1 h-4 w-4" />
+ <Button size="sm" onClick={handleImportFolder} disabled={importing}>
+ <Plus className="mr-1 h-4 w-4" />
Folder
</Button>
</div>
@@ -368,7 +368,7 @@ export function SourcesView() {
{t("sources.importFiles")}
</Button>
<Button variant="outline" size="sm" onClick={handleImportFolder}>
- <FolderOpen className="mr-1 h-4 w-4" />
+ <Plus className="mr-1 h-4 w-4" />
Folder
</Button>
</div>