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

Smaller height of actor boxes #342

Closed
dxps opened this issue Apr 14, 2016 · 3 comments
Closed

Smaller height of actor boxes #342

dxps opened this issue Apr 14, 2016 · 3 comments

Comments

@dxps
Copy link

dxps commented Apr 14, 2016

Hello,

I am trying to make the actor's boxes smaller. I started setting the height on .actor class:
.actor { stroke: none; fill: #E2ECFF; height: 32px; }

However, I could not find where to make the actor text to be centered within the box:

2016-04-14_172408

Setting height: 32 in the conf object (ex: in mermaid-0.5.8.js, line 39147) did not make any difference.

Thank you!

@knsv
Copy link
Collaborator

knsv commented Jun 8, 2016

Hello,

the height is managed by the rendering as it affects the sussequent coordinates in the graph.

The way to change it is by changing the conf, (as you mentioned).

This works for me:

    <script>
        mermaid.initialize({
                sequenceDiagram:{
                    mirrorActors:true,
                    height:35,
                    topPadding:125
                },
                logLevel:1

        });

Maybe the problem is how you initialize mermaid?

Sorry about the late reply and I hope this helps,
Knut

@dxps
Copy link
Author

dxps commented Jul 24, 2016

Hi Knut,
Thanks for the feedback!
I'll try it.

@tylerlong
Copy link
Collaborator

Latest syntax has been changed to:

mermaid.initialize({
      sequence:{
...
      }
})

mgenereu pushed a commit to mgenereu/mermaid that referenced this issue Jun 25, 2022
chore(dependabot) : add github-actions and docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants