Skip to content

Fix overlapping labels #7583

Open
EmnaBarbouch wants to merge 1 commit intomermaid-js:developfrom
EmnaBarbouch:bug/7492_overlapping_labels
Open

Fix overlapping labels #7583
EmnaBarbouch wants to merge 1 commit intomermaid-js:developfrom
EmnaBarbouch:bug/7492_overlapping_labels

Conversation

@EmnaBarbouch
Copy link
Copy Markdown

📑 Summary

Shorten node and relationship labels in the C4 Container demo (demos/c4context.html) to fix overlapping text in rendered diagrams.

Resolves #7492

📏 Design Decisions

Excessively long description strings in Person, System_Ext, Container, ContainerDb, and Rel nodes were causing label overflow and visual overlap in the C4 context and container diagrams. Labels were trimmed to their essential meaning without losing semantic clarity. UpdateRelStyle offset overrides were also removed since they are no longer needed with the shorter labels. One line was added to .gitignore to exclude auto-generated Langium CLI output.

📋 Tasks

Make sure you

  • 📖 have read the contribution guidelines
  • 💻 have added necessary unit/e2e tests.
  • 📓 have added documentation. Make sure MERMAID_RELEASE_VERSION is used for all new features.
  • 🦋 If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 6, 2026

⚠️ No Changeset found

Latest commit: 4c8c113

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 6, 2026

Deploy Preview for mermaid-js ready!

Name Link
🔨 Latest commit 4c8c113
🔍 Latest deploy log https://app.netlify.com/projects/mermaid-js/deploys/69d39357a714df0008a42826
😎 Deploy Preview https://deploy-preview-7583--mermaid-js.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added the Type: Bug / Error Something isn't working or is incorrect label Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug / Error Something isn't working or is incorrect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C4 Container diagram: overlapping labels, text overflow, and crossing arrows causing layout issues

2 participants