Skip to content
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

Sequence Diagrams with messageAlign left clips right most text #3325

Open
kevinawoo opened this issue Aug 16, 2022 · 1 comment
Open

Sequence Diagrams with messageAlign left clips right most text #3325

kevinawoo opened this issue Aug 16, 2022 · 1 comment
Labels
roadmap items to add to roadmap for auto workflow Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@kevinawoo
Copy link

Describe the bug
Introduced in 9.1.5, when a sequence diagram has messageAlign: left config, the right most text is clipped.

To Reproduce
Steps to reproduce the behavior:

  1. Create a diagram with messageAlign: left
  2. Notice the end of the right most text

Expected behavior

  • The diagram should encompass the text and not clip any text.
  • The rect should encompass the text as well

Screenshots
image

Code Sample
Live Editor example

```mermaid
%%{init: { 'sequence': {'messageAlign': 'left'} }}%%
sequenceDiagram
rect green
    User->>Browser: Click hello
    Browser->>Server: Get /hello HTTP/1.1 <br> Host: example.com <br> Accept: text/html
    Server->>Browser: HTTP/1.1/ 200 OK <br> Content-Type: text/html <br> Content-Length: 42
end
```

Desktop (please complete the following information):

  • OS: Mac 12.5

  • Browser: Chrome

  • Version 104.0.5112.79

  • OS: Mermaid CLI, Docker

  • Version: v9.1.5

Additional context
Relates to #3011 and #3194.

@kevinawoo kevinawoo added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Aug 16, 2022
@Airkro
Copy link

Airkro commented Aug 18, 2022

Is it possible to make it align with the arrow direction?

@jgreywolf jgreywolf added the roadmap items to add to roadmap for auto workflow label Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
roadmap items to add to roadmap for auto workflow Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

3 participants