[dyad] Improve tab color logic - wrote 1 file(s)

This commit is contained in:
[dyad]
2026-01-21 09:12:37 +01:00
parent 1bd8b332c5
commit 180dee0ee3

View File

@@ -67,10 +67,8 @@ export function MetaForm() {
let headlinesColor: IndicatorColor = "gray";
if (metaData.headlines && metaData.headlines.length > 0) {
const h1s = metaData.headlines.filter((h) => h.tag === "h1");
if (h1s.length === 0) {
if (h1s.length !== 1) {
headlinesColor = "red";
} else if (h1s.length > 1) {
headlinesColor = "yellow";
} else {
headlinesColor = "green";
}