Docs: Mermaid flowchart renders too small and is unreadable in both themes

Offen Anfängerfreundlich
#703 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
62/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
markdown, nextjs, react, typescript

Rechercherichtung

Das Diagramm wird von der Mermaid-Komponente in components/docs/mermaid.tsx gerendert, die das Issue als Ausgangspunkt nennt. Prüfe, wie sie das SVG dimensioniert und die Theme-Farben setzt. Zum Reproduzieren öffne die Docker-Setup-Seite unter /docs/self-hosting/docker und vergleiche das Flowchart im hellen und im dunklen Modus. Fertig ist es, wenn die Beschriftungen in beiden Themes lesbar sind und die Kanten ausreichend Kontrast haben, auch auf schmalen Bildschirmen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug documentation good first issue

Description

The flowchart on the Docker Setup documentation page is rendered extremely small inside a large diagram container. The node labels are nearly unreadable, and the connecting lines are difficult to see, especially in dark mode.

Steps to reproduce

  1. Open the answerLoops documentation.
  2. Navigate to Self-hosting guide → Docker Setup (/docs/self-hosting/docker).
  3. Scroll to the “What docker compose up starts” section.
  4. Observe the flowchart in light mode, then switch to dark mode.

Screenshots

Screenshot 2026-11-24 174638 Screenshot 2026-11-24 174612

Actual behavior

  • Nodes and labels appear extremely small, despite the large available container.
  • Connecting lines have poor visibility, particularly in dark mode.
  • The diagram is difficult to understand in either theme.

Expected behavior

  • The diagram should scale appropriately within its container, with readable labels and clearly visible connections.
  • Both light and dark themes should provide sufficient contrast.
  • The diagram should remain readable on smaller screens.

Additional context

Observed on a desktop browser in both themes. The underlying cause has not been confirmed; the Mermaid component (components/docs/mermaid.tsx) may be a useful starting point for investigation.

I'd be happy to investigate and submit a fix if this issue is accepted.

Vorherrschende Sprache
TypeScript
Sterne
16
Forks
2
Ø Merge
5 Std. 25 Min.
Gemergte PRs (30 T.)
168

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus answerLoops/answerLoops

Alle Issues in answerLoops/answerLoops

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.