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 Diagram Title Isn't Centered #3927

Open
apeacock1991 opened this issue Dec 18, 2022 · 2 comments
Open

Sequence Diagram Title Isn't Centered #3927

apeacock1991 opened this issue Dec 18, 2022 · 2 comments
Labels
Graph: Sequence Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@apeacock1991
Copy link

Description

When adding a title to a sequence diagram, it is not centered, unlike all other diagrams. It doesn't matter whether you use the new title syntax, or the old one.

Steps to reproduce

Sequence diagram example with text not centered:

---
title: Not center
---
sequenceDiagram
    A-->B: test

Class diagram centered:

---
title: Not center
---
classDiagram
    A-->B

Screenshots

Screenshot 2022-12-18 at 19 12 40

Code Sample

No response

Setup

Desktop

  • OS and Version: Mac
  • Browser and Version: Chrome, 108

Additional Context

No response

@apeacock1991 apeacock1991 added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Dec 18, 2022
@apeacock1991
Copy link
Author

apeacock1991 commented Dec 19, 2022

Mermaid usage sucks on GitHub. Unlike every other language, a code block is executed rather than displayed. A prefix on the first line like ! should have been used for execute.

You can just leave off the "mermaid" from the first line, and just do it with backticks:

Not rendered:

sequenceDiagram
  A->>B: test

Rendered:

sequenceDiagram
  A->>B: test
Loading

Sure it doesn't give you syntax highlighting, but Mermaid's syntax is very simple anyway, so I think it's generally fine

@zsynacl
Copy link

zsynacl commented Jan 5, 2023

Encounterd same issue when using Typora, and I'm pretty sure that issue will happen on Github.

sequenceDiagram
title: 备选方案1:很长的描述文字ABCDEFGHIJKLMNOPQRST

A ->> B: msg1
B -->> A: msg2
A ->> A: do something
A -->> B: msg3<br/>(status=true)
B -->> C: msg4
Loading

@jgreywolf jgreywolf added roadmap items to add to roadmap for auto workflow and removed roadmap items to add to roadmap for auto workflow labels Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Graph: Sequence 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