World's first open-source enterprise world model.
Rust agent-memorybitemporalgraphragknowledge-baseknowledge-graphllmontologypgvectorpostgresqlragrustself-hostedsemantic-searchtemporal-knowledge-graphworld-model
Rail counts are chips, and a zero is not written (#447)
WaylandYang9a3ab3373244
diff --git a/web/src/ui/index.tsx b/web/src/ui/index.tsxindex 35896fa0..c7557fd9 100644--- a/web/src/ui/index.tsx+++ b/web/src/ui/index.tsx@@ -1187,11 +1187,10 @@ export function RailItem({active={active}icon={icon}className={className}+ // 计数只在有东西时出现,写成一枚 chip;0 不写——一栏灰零只是噪音trailing={- count !== undefined ? (- <span className={cn("u-num", count > 0 ? "text-ink-2" : "text-ink-3")}>- {count}- </span>+ count !== undefined && count > 0 ? (+ <span className="u-chip u-chip-neutral u-num">{count}</span>) : undefined}{...props}