Skip to content

World's first open-source enterprise world model.

The confidence figure stops shouting in the browse list (#42)

WaylandYang778d30588a0b
diff --git a/web/src/pages/Graph.tsx b/web/src/pages/Graph.tsx
index a3a66a6f..390520c3 100644
--- a/web/src/pages/Graph.tsx
+++ b/web/src/pages/Graph.tsx
@@ -1665,7 +1665,7 @@ function FactRow({
</span>
)}
{lowConfidence && (
- <span className="u-chip u-chip-warn shrink-0 !text-[10px] !px-1.5">
+ <span className="shrink-0 u-num u-meta-warn text-[10.5px]">
{Math.round(fact.confidence * 100)}%
</span>
)}
diff --git a/web/src/styles.css b/web/src/styles.css
index f4f47c5e..85ed1a41 100644
--- a/web/src/styles.css
+++ b/web/src/styles.css
@@ -255,6 +255,14 @@ select.input-dark option {
color: var(--u-violet);
}
+/* 浏览态里的程度标注:同一个警示色,但没有填充、没有药丸形状。
+ chip 是"停下来看这个",用在审核队列上是对的;而在图谱列表里,
+ 主角是实体名,置信度和右侧的时间区间同属元信息——不该是整屏
+ 唯一有填充色的东西。 */
+.u-meta-warn {
+ color: rgba(242, 182, 109, 0.55);
+}
+
/* ---- graph canvas: 图纸式大小网格(细密小格 + 每 4 格一条更亮的主线) ---- */
.u-grid-bg {
background-image: