World's first open-source enterprise world model.
Rust agent-memorybitemporalgraphragknowledge-baseknowledge-graphllmontologypgvectorpostgresqlragrustself-hostedsemantic-searchtemporal-knowledge-graphworld-model
The source kinds wrap inside the dialog (#388)
WaylandYang750f86b39c5e
diff --git a/web/src/pages/Library.tsx b/web/src/pages/Library.tsxindex ebb10d08..f6c617bb 100644--- a/web/src/pages/Library.tsx+++ b/web/src/pages/Library.tsx@@ -1470,19 +1470,19 @@ function SourceModal({}><div>- {/* 类型 */}- <div className="flex gap-2 mb-2">+ {/* 类型:十二种排不下一行,换行,按钮按内容宽。选中的那个是 primary,+ 与日程选择器里的多选同一个说法 */}+ <div className="mb-2 flex flex-wrap gap-2">{CREATABLE_SOURCE_KINDS.map((k) => {const Icon = KIND_ICON[k];return (- <Button variant="secondary" size="sm"+ <Buttonkey={k}+ variant={kind === k ? "primary" : "secondary"}+ size="sm"+ icon={<Icon size={12} />}onClick={() => setKind(k)}- className={`u-btn flex-1 px-3 py-2 text-small flex items-center justify-center gap-2 ${- kind === k ? "u-btn-primary" : "u-btn-ghost"- }`}>- <Icon size={12} />{S.library.sourceKinds[k]}</Button>);