Skip to content

fix(editor): Fix column collapse button not visible in table view#28899

Open
RicardoE105 wants to merge 1 commit intomasterfrom
ado-4971-community-issue-column-focus-button-in-node-inputoutput
Open

fix(editor): Fix column collapse button not visible in table view#28899
RicardoE105 wants to merge 1 commit intomasterfrom
ado-4971-community-issue-column-focus-button-in-node-inputoutput

Conversation

@RicardoE105
Copy link
Copy Markdown
Contributor

@RicardoE105 RicardoE105 commented Apr 22, 2026

Summary

  • Fix the column collapse ("focus") button not appearing on hover in the NDV table view
  • The N8nTooltip migration from Element Plus to reka-ui (refactor(editor): Replace old N8nTooltip with new Reka UI based tooltip #22838) introduced a <span> wrapper around tooltip triggers. The broad .header span CSS rule applied overflow: hidden to this wrapper, clipping the collapse button
  • Scope the CSS selector to > :first-child so only the text element gets truncation styles
  • Remove negative margin-block on the collapse button that caused clipping and vertical misalignment inside the tooltip wrapper

Related ticket

https://linear.app/n8n/issue/ADO-4971

Test plan

Import this workflow, execute it, then open the Edit Fields node output in Table view:

Test workflow JSON
{
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [0, 0],
      "id": "94cbfb22-8799-4f3b-af5f-3c189d46123a",
      "name": "When clicking 'Execute workflow'"
    },
    {
      "parameters": {
        "mode": "raw",
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [208, 0],
      "id": "43d672db-f2d0-443e-9a63-cf8a260fa82b",
      "name": "Edit Fields"
    }
  ],
  "connections": {
    "When clicking 'Execute workflow'": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {
    "When clicking 'Execute workflow'": [
      {
        "name": "First item",
        "code": 1,
        "data": {"some": "a", "large": "b", "json": "c", "object": "d", "with": "e", "many": "f", "keys": "g"}
      },
      {
        "name": "Second item",
        "code": 2,
        "data": {"some": "n", "large": "m", "json": "o", "object": "p", "with": "q", "many": "r", "keys": "s"}
      },
      {
        "name": "Third item",
        "code": 3,
        "data": {"some": "x", "large": "y", "json": "z", "object": "w", "with": "v", "many": "u", "keys": "t"}
      },
      {
        "name": "Third item",
        "code": 3,
        "data": {"some": "x", "large": "y", "json": "z", "object": "w", "with": "v", "many": "u", "keys": "t"}
      },
      {
        "name": "Third item",
        "code": 3,
        "data": {"some": "x", "large": "y", "json": "z", "object": "w", "with": "v", "many": "u", "keys": "t"}
      },
      {
        "name": "Third item",
        "code": 3,
        "data": {"some": "x", "large": "y", "json": "z", "object": "w", "with": "v", "many": "u", "keys": "t"}
      },
      {
        "name": "Third item",
        "code": 3,
        "data": {"some": "x", "large": "y", "json": "z", "object": "w", "with": "v", "many": "u", "keys": "t"}
      }
    ]
  }
}
  • Hover over any column header — the collapse (chevrons) button should appear
  • Click the button — other columns should collapse to single-line truncated text
  • Click the reset button (next to search icon) to uncollapse
  • Verify button appears on hover for all column types (simple values and JSON objects)
  • Verify button is vertically centered in the header row

The N8nTooltip migration from Element Plus to reka-ui introduced a
<span> wrapper around tooltip triggers. The broad `.header span` CSS
rule applied `overflow: hidden` to this new wrapper, clipping the
collapse button due to its negative block margins.

- Scope `.header span` to `> :first-child` so only the text element
  gets truncation styles, not the tooltip trigger wrapper
- Remove negative `margin-block` on the collapse button that caused
  clipping inside the tooltip wrapper span
@RicardoE105 RicardoE105 marked this pull request as ready for review April 22, 2026 12:00
@n8n-assistant n8n-assistant Bot added the n8n team Authored by the n8n team label Apr 22, 2026
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ Ownership acknowledgement required

Please add or check the following item in your PR description before this can be merged:

- [x] I have seen this code, I have run this code, and I take responsibility for this code.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@RicardoE105
Copy link
Copy Markdown
Contributor Author

fIxes #26393

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

n8n team Authored by the n8n team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant