Skip to content

Text in mermaid diagrams overflows in Firefox #4429

@OlgaKartasheva

Description

@OlgaKartasheva

Contribution guidelines

I've found a bug and checked that ...

  • ... the problem doesn't occur with the mkdocs or readthedocs themes
  • ... the problem persists when all overrides are removed, i.e. custom_dir, extra_javascript and extra_css
  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

I'm using mermaid sequence diagrams and seeing some issues on Firefox vs Chrome:

  1. text does not fit inside the notes block
  2. text (inscriptions on the arrows, messages) is not strictly above the arrows, but slides down on them

Expected behaviour

The text is displayed in the same way as in Google Chrome in any browser:

  1. text fits inside the notes, loops and other blocks
  2. text (inscriptions on the arrows, messages) is strictly above the arrows

Actual behaviour

on Firefox vs Chrome:

  1. text does not fit inside the notes, loops and other blocks
  2. text (inscriptions on the arrows, messages) is not strictly above the arrows, but slides down on them

Steps to reproduce

This can be reproduced on the main docs (just open it in Firefox but not Chrome): https://squidfunk.github.io/mkdocs-material/reference/diagrams/#using-sequence-diagrams

In this example the note is small but if it will be bigger than it would not fits inside the block
image

Package versions

This can be replicated on the main docs

Configuration

This can be replicated on the main docs

System information

MacOS 12.2.1 (21D62) Monterey

  • Firefox 102.0.1 (64-bit) - issue present
  • Chrome 104.0.5112.101 (Official Build) (x86_64) - no issue
  • Safari 15.3 (17612.4.9.1.8) - no issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions