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

fix: long strings in markdown in flowcharts in firefox #5648

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Yash-Singh1
Copy link
Member

📑 Summary

Fixes an issue on firefox where long strings in markdown in flowchart diagrams would overflow and not render correctly.

Resolves #5646

📏 Design Decisions

This problem resulted since the width and height inline styles were registering as 0 when the px units weren't specified in Firefox. The newly assigned bbox after switching the div to display: table didn't have a width or height either on Firefox only. This PR instead adds the height as a style upto where the width and height attributes are assigned on Firefox. I am not sure if the inline styles are needed because the attributes exist, but I kept them there for now.

📋 Tasks

Make sure you

@github-actions github-actions bot added the Type: Bug / Error Something isn't working or is incorrect label Jul 17, 2024
Copy link

netlify bot commented Jul 17, 2024

Deploy Preview for mermaid-js ready!

Name Link
🔨 Latest commit 5907842
🔍 Latest deploy log https://app.netlify.com/sites/mermaid-js/deploys/66972326f4718400083e2fe1
😎 Deploy Preview https://deploy-preview-5648--mermaid-js.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

argos-ci bot commented Jul 17, 2024

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Jul 17, 2024, 2:05 AM

Copy link

codecov bot commented Jul 17, 2024

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Project coverage is 5.86%. Comparing base (b1b480a) to head (5907842).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           develop   #5648   +/-   ##
=======================================
  Coverage     5.86%   5.86%           
=======================================
  Files          274     273    -1     
  Lines        41087   41080    -7     
  Branches       488     512   +24     
=======================================
  Hits          2408    2408           
+ Misses       38679   38672    -7     
Flag Coverage Δ
unit 5.86% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
packages/mermaid/src/dagre-wrapper/shapes/util.js 0.00% <0.00%> (ø)
packages/mermaid/src/rendering-util/createText.ts 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Long markdown strings disappear in Firefox
1 participant