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

Truncated text when using style on a subgraph title #98

Open
Jacques-Olivier-Farcy opened this issue Jul 4, 2023 · 0 comments
Open

Comments

@Jacques-Olivier-Farcy
Copy link

Setup and configuration

  • Mermaid version: 3.1.10
  • MediaWiki version: 1.39
  • PHP version: 7.4
  • Database system (MySQL, PostgresQL, etc.) and version: Mariadb 10.5

Issue

Produces a stack trace and outputs:

When applying a style to a subtitle, when text size is increased, it is truncated :

{{#mermaid:graph LR;
 subgraph styleTitle [Support tickets]
  BLOC1[[Test]] --> BLOC2(Test bloc 2)
end
%% Style of title
    classDef Title fill:#FF99FF00, stroke-width:0, color:grey, font-weight:bold, font-size: 15px;
%% style
    class styleTitle Title;
}}

All is workgin good:
image

But when i change the size of the text:

{{#mermaid:graph LR;
 subgraph styleTitle [Support tickets]
  BLOC1[[Test]] --> BLOC2(Test bloc 2)
end
%% Style of title
    classDef Title fill:#FF99FF00, stroke-width:0, color:grey, font-weight:bold, font-size: 25px;
%% style
    class styleTitle Title;
}}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant