Skip to content

Truncated text when using style on a subgraph title #98

@Jacques-Olivier-Farcy

Description

@Jacques-Olivier-Farcy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions