Skip to content

Tree View - Leaf nodes misalign with parent nodes when mixed in the same level #2550

Description

@bm-77

Hi. I'm Bruno Mendes, a Software Developer in the Iris Team.

In the Tree View, when a tree level contains both expandable nodes (with children) and leaf nodes, the labels and icons of leaf nodes are misaligned with expandable nodes. The expand/collapse arrow occupies space on expandable nodes, while leaf nodes have no arrow and no reserved space for it, causing the visual offset.

Steps to reproduce:

  • Create a tree with sibling nodes where some have children and some are leaves
  • Observe that the icon/label of leaf nodes does not align with the icon/label of expandable siblings

Expected: All sibling nodes at the same level should have their icons and labels aligned regardless of whether they have children.

Actual: Leaf nodes appear shifted right compared to expandable siblings.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions