Soften the tone of the docs and comments written today

This commit is contained in:
2026-08-11 10:12:25 +07:00
parent 97cb6d16f4
commit 6b8f7584ed
18 changed files with 921 additions and 64 deletions
+12 -1
View File
@@ -220,7 +220,18 @@ export function ChatBubble({
className="inline-flex items-center gap-1 text-[0.7rem] font-medium text-txt-muted transition-colors hover:text-accent-primary"
>
<BookOpen className="h-3 w-3" />
Xem căn cứ · {citation.drugName} · {citationSectionLabel(citation.sectionType)} · tr. {citation.sourcePageRange[0]}
{/* Several distinct chunks routinely share one drug,
section and printed page (seen live 2026-08-11:
three chips all reading "METFORMIN · Liều lượng &
Cách dùng · tr. 957"), which reads as the same
link repeated. They are deliberately not collapsed
by label: each chip opens a different evidence
block and provenance is a hard guardrail. Instead
each carries the number the evidence panel already
shows on its cards, so a chip maps to exactly one
card. The number stays off single-source blocks,
where there is nothing to disambiguate. */}
Xem căn cứ{sources.length > 1 ? ` [${index + 1}]` : ""} · {citation.drugName} · {citationSectionLabel(citation.sectionType)} · tr. {citation.sourcePageRange[0]}
</button>
))}
</div>