manager: Fix mermaid style on dark Forgejo theme
All checks were successful
/ build (push) Successful in 1m6s

Forgejo seems to automatically choose a light font color for mermaid
graphs when the site-theme is dark.  This conflicts with the background
colors of our mermaid nodes.  Explicitly force a dark font color to
ensure the text is also readable on dark Forgejo.
This commit is contained in:
Rahix 2025-05-25 15:32:12 +02:00
parent 15726d9ee8
commit 1cefb058bf

View file

@ -85,11 +85,11 @@ impl Element {
fn mermaid_classes() -> String {
r##"
classDef eoi fill:#fff, stroke:#000;
classDef eoi fill:#fff, stroke:#000, color:#000;
classDef dependant fill:#fff, stroke:#888, color:#888;
classDef dep_missing fill:#fcc, stroke:#800;
classDef dep_assigned fill:#ffa, stroke:#a50;
classDef dep_completed fill:#afa, stroke:#080;
classDef dep_missing fill:#fcc, stroke:#800, color:#000;
classDef dep_assigned fill:#ffa, stroke:#a50, color:#000;
classDef dep_completed fill:#afa, stroke:#080, color:#000;
"##
.to_owned()
}