Skip to content

String not display completely in the mermaid on Safari when zoomed #5122

Open
@abnerlee

Description

Description

node text is not displayed completely on Mac when zoomed.

Steps to reproduce

  1. Open Safari
  2. Press command + + or - to change page zoom in Safari
  3. Open https://mermaid.live/edit#pako:eNpFj8FqwzAQRH9l2VMLyaFpTz4EGjvNJdBCc7N8WKJNJBKthLymBNv_HqVQehuGN8PMiMdoGSs8Z0oODo2R97Z22fcaqO9guVxPO1YIUfg2weZpF6F3MSUv52cjmwcA9bh_IAzqvFxmI_Vv7lN4gqbdU9KYuj_38BMn2Lb-y5XKf9dlLvRHW5N9Wb2-dbjAwDmQt2XcaATAoDoObLAq0vKJhqsaNDIXlAaN3zc5YqV54AUOyZJy46ncClid6NrzfAdq8E8l
  4. use sample mermaid code
graph TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[Cad1234]
  1. see screenshots, the text in node is not displayed completely.

Screenshots

Screenshot 2023-12-07 at 22 35 06

Code Sample

graph TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[Cad1234]


### Setup

- Mermaid version: 10.6.1
- Browser and Version: Safari

### Suggested Solutions

_No response_

### Additional Context

_No response_

Metadata

Assignees

No one assigned

    Labels

    Status: TriageNeeds to be verified, categorized, etcType: Bug / ErrorSomething isn't working or is incorrect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions