OrgChart icon indicating copy to clipboard operation
OrgChart copied to clipboard

Nodes with different width and only have one child

Open ajangrokim opened this issue 1 year ago • 0 comments

I found an issue if I set element width with class ".orgchart .node .title" and ".orgchart .node .content" to "auto" to enabled different node width. The problem was child position if its parent has only 1 child, the position of the child not correctly aligned.

Then I add this to my css:

.orgchart .nodes {
	justify-content: center; /* Penting untuk nodes dengan lebar berbeda-beda dan hanya punya 1 child. */
}

and it works.

Sorry for my english.

ajangrokim avatar Sep 04 '24 00:09 ajangrokim