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

Block graph - Custom height issue #6152

Open
nicolas-goyon opened this issue Dec 27, 2024 · 0 comments
Open

Block graph - Custom height issue #6152

nicolas-goyon opened this issue Dec 27, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@nicolas-goyon
Copy link

nicolas-goyon commented Dec 27, 2024

Description

In the following code, I've set a custom height for my holder block, however the SVG in the HTML Preview does not have its height changed, it still as viewBox ="-5 -29.79.... 352.5 59.59.... (it seems to be the last digit)

block-beta
  block:EA["My custom block holder"]
    dsqd
    dsqd
    qs
    csq
    wxcw
    vcxvx
    bvc
  end
  style EA height:512px
Loading

Steps to reproduce

  1. Create a "block" group
  2. Set his heigh bigger than its basic height

Screenshots

image

Code Sample

Live editor

block-beta
  block:EA["My custom block holder"]
    dsqd
    dsqd
    qs
    csq
    wxcw
    vcxvx
    bvc
  end
  style EA height:512px

Setup

  • Mermaid version: 11.4.1 (latest at current date)
  • Browser and Version: Chrome Version 131.0.6778.205 (latest)
  • Same issue wether on the online editor, vscode preview or github preview.

Suggested Solutions

Update the svg's height when the user rewrite a block's height, or add a styling possibility to have either a scroll, or a full height on the svg.

Additional Context

No response

@nicolas-goyon nicolas-goyon added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant