-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Fix: Remove unexpected spaces in Block Diagram #6702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Remove unexpected spaces in Block Diagram #6702
Conversation
🦋 Changeset detectedLatest commit: b7a591b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for mermaid-js ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
@mermaid-js/examples
mermaid
@mermaid-js/layout-elk
@mermaid-js/mermaid-zenuml
@mermaid-js/parser
@mermaid-js/tiny
commit: |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6702 +/- ##
==========================================
- Coverage 3.84% 3.70% -0.14%
==========================================
Files 418 453 +35
Lines 43706 44732 +1026
Branches 670 707 +37
==========================================
- Hits 1681 1659 -22
- Misses 42025 43073 +1048
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
|
I love it. thanks for contribution. |
Add a test-case for 939da08 (Fix 6633, 2025-06-28), that checks whether overflowing blocks render correctly.
Add a changeset that explains that overflowing blocks no longer create an empty line in block diagrams or cause bugs in later lines. Technically, this is a breaking change since it can change the layout of block diagrams, but this diagram is still in `-beta` and they all will still render correctly.
This line is a bit confusing to me, so I thought I should clarify it! See: 939da08
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Sorry for the delaying in reviewing this.
I hope you don't mind, but I've added an E2E test-case, a changeset entry (so that this goes in the release notes and you get credit for solving this), and a comment that explains the code a bit.
"If necessary, add an error message stating that the columns and block widths do not match." is a good idea, but another contributor has already solved that part of it: #6717 😉
Please add some documentation
Since this is behaviour we don't recommend, I think we can skip adding it to the docs and just having the changeset entry is enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@qraqras, Thank you for the contribution! |
📑 Summary
Remove unexpected spaces in Block Diagram.
Resolves #6633
e.g.
columns 1

https://www.mermaidchart.com/play#pako:eNqrVkrOT0lVslJKyslPztZNSi1JjMlTAILk_JzS3LxiBUMI19EKynCyMoIwnK2MIQwXKxMIwxUm4gZT425lqFQLAHetGZ4
columns 2

https://www.mermaidchart.com/play#pako:eNqrVkrOT0lVslJKyslPztZNSi1JjMlTAILk_JzS3LxiBSMI19HKEMJwsoKKOFsZQxguViYQhitMxA2mxt3KUKkWAHfvGZ8
📏 Design Decisions
📋 Tasks
Make sure you
MERMAID_RELEASE_VERSIONis used for all new features.pnpm changesetand following the prompts. Changesets that add features should beminorand those that fix bugs should bepatch. Please prefix changeset messages withfeat:,fix:, orchore:.