Docs: Mermaid flowchart renders too small and is unreadable in both themes
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
- Domain
- documentation, frontend
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
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
- Open the answerLoops documentation.
- Navigate to Self-hosting guide → Docker Setup (
/docs/self-hosting/docker). - Scroll to the “What
docker compose upstarts” section. - Observe the flowchart in light mode, then switch to dark mode.
Screenshots
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
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from answerLoops/answerLoops
-
enhancement frontend good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
answerLoops/answerLoops#636 ·
Maintainers usually reply within 1 day
-
Widget: make the chat window fit on small phonesPossibly taken @aurelle-awountsa claimed this 8 days ago. Openenhancement frontend good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
answerLoops/answerLoops#344 · 9 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
backend bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
answerLoops/answerLoops#17 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 15/100
answerLoops/answerLoops#678 ·
Maintainers usually reply within 1 day
-
backend enhancement frontend
Difficulty 5/5 Over a week Newbie friendliness 18/100
answerLoops/answerLoops#671 ·
Maintainers usually reply within 1 day
All issues in answerLoops/answerLoops
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Payment safety page: explain 'preimage' and 'claim' and name the cross-chain open state preciselyOpencontributors-section
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
DACS-Agent-commerce/Community#366 ·
Maintainers usually reply within 1 day
-
bug os:Windows
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
electron-userland/electron-builder#10657 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day