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

Subscripts are bunched in a corner in Safari #1423

Closed
Sjors opened this issue Feb 28, 2024 · 0 comments · Fixed by #1424
Closed

Subscripts are bunched in a corner in Safari #1423

Sjors opened this issue Feb 28, 2024 · 0 comments · Fixed by #1424

Comments

@Sjors
Copy link

Sjors commented Feb 28, 2024

Description

Given the example below, it renders fine in Chrome, but bunches up the subscripts in a corner in Safari.

Steps to reproduce

Enter the below code in the live editor. Check in Safari vs Chrome.

Here it is in the live in the editor (I also tried the develop version).
https://mermaid.live/edit#pako:eNpdkMsKgzAQRX8lzFopvsGKi9I_aHdNF6mZVsGo2MmiiP_eiHQKWSWZc-6FzALNqBFKeM1qasXpKgchBGU3CVS97aPOqsN2SLiLMKwFxUxiJsc9lDPK_dDP2J8Ji4knRkwiv71gVHihlEn6D0EABmejOu0-t2wVTmrRoITSXTU-le1JghxWpypL4-UzNFDSbDEAO2lFeO6UW4vZh-sX-0ZbnA

Screenshots

In Safari on both macOS 13.6.4 and 14.3.1 it looks like this:
Scherm­afbeelding 2024-02-28 om 10 56 52

In Chrome it looks correct:
Scherm­afbeelding 2024-02-28 om 10 57 44

Code Sample

graph BT
   t5["t<sub>5</sub>"] --> t2["t<sub>2</sub>"];
   t6["t<sub>6</sub>"] --> t2;
   t6 --> t3["t<sub>3</sub>"] --> t1["t<sub>1</sub>"];
   t7["t<sub>7</sub>"] --> t4["t<sub>4</sub>"];

Setup

No response

Suggested Solutions

No response

Additional Context

No response

@Yash-Singh1 Yash-Singh1 transferred this issue from mermaid-js/mermaid Mar 24, 2024
github-merge-queue bot pushed a commit that referenced this issue Apr 13, 2024
fix: subscripts in corner safari, resolves #1423
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant