Skip to content

[6.x] Stop tree rows with children growing taller than the others - #16014

Merged
jaygeorge merged 1 commit into
6.xfrom
16014-tree-chevron-row-height
Nov 23, 2026
Merged

jaygeorge merged 1 commit into
6.xfrom
16014-tree-chevron-row-height

Conversation

@jaygeorge

@jaygeorge jaygeorge commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Description of the Problem

In a navigation or a structured collection's tree, any page with children is a few pixels taller than the pages around it. It's the expand/collapse chevron: it's taller than the text it sits beside, and since #13649 moved the row's padding onto that line of text, the chevron makes the row taller too.

image

What this PR Does

Adds -my-1 to the chevron, next to the -mx-1.5 it already has, so it keeps its full click target without adding to the row's height. Every row is back to the same height.

I went with a negative margin rather than a smaller button so the click target stays above 24px, and rather than moving the padding back onto the whole row, because that padding is what gives the entries fieldtype's tree its full-height click area.

Before / After

image

How to Reproduce

  1. Open a navigation or a collection's tree view
  2. Drag a page under another, or open one that already has children
  3. Compare the parent's row height with the rows around it

- The 26px expand chevron set the row height since #13649 moved the padding onto the text line
- -my-1 keeps its click target without adding height
@jaygeorge
jaygeorge enabled auto-merge (squash) November 23, 2026 16:02
@jaygeorge
jaygeorge merged commit 24b9a17 into 6.x Nov 23, 2026
66 checks passed
@jaygeorge
jaygeorge deleted the 16014-tree-chevron-row-height branch November 23, 2026 16:03
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

Successfully merging this pull request may close these issues.

1 participant