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

Open Beginner friendly
#703 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
markdown, nextjs, react, typescript

Research direction

The diagram is rendered by the Mermaid component in components/docs/mermaid.tsx, which the issue names as a starting point; check how it sizes the SVG and sets its theme colours. Reproduce by opening the Docker Setup page at /docs/self-hosting/docker and comparing the flowchart in light and dark mode. Done when the labels are readable and the edges have enough contrast in both themes, including on narrow screens.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
16
Forks
2
Avg merge
5h 25m
Merged PRs (30d)
168

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from answerLoops/answerLoops

All issues in answerLoops/answerLoops

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.