Skip to content

fix(table): cap kebab trigger layout height to keep 40px row rhythm - #2259

Open
Fiona2016 wants to merge 1 commit into
mainfrom
fix-table-kebab-row-height-0812
Open

fix(table): cap kebab trigger layout height to keep 40px row rhythm#2259
Fiona2016 wants to merge 1 commit into
mainfrom
fix-table-kebab-row-height-0812

Conversation

@Fiona2016

@Fiona2016 Fiona2016 commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Changes

The row-action kebab trigger in EnhancedTable is sized 28x28 for a comfortable click target. Being the tallest element in a row, it stretched every row that renders the kebab to 45px (8px vertical padding + 28px button + 1px border) instead of the intended 40px row height (8px padding + 24px content).

This adds -2px vertical margins to the trigger so its layout footprint becomes 24px — the same as sort buttons and inline icon action buttons — while the 28px paint and hit area stays unchanged, overflowing into the existing cell padding.

Effect

  • Rows containing the kebab trigger: 45px -> 41px (same rhythm as the 40px header + 1px separator)
  • Button visuals, hover pill, and click target: unchanged

Summary by CodeRabbit

  • Bug Fixes
    • Prevented table rows from expanding when using the kebab action trigger.
    • Preserved the trigger’s larger visual and hit area without affecting table layout.

The row-action kebab button is 28x28 for a comfortable hit area, but as the
tallest element in every row it stretched EnhancedTable rows to 45px instead
of the intended 40px (8px padding + 24px content + 1px border). Give it
-2px vertical margins so its layout footprint is 24px, matching sort buttons
and inline icon buttons, while keeping the 28px paint/hit area unchanged.
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The EnhancedTable kebab action trigger now uses negative vertical margins. Its 28px visual and hit area remains, while its layout footprint is reduced to 24px to prevent table row expansion.

Changes

EnhancedTable layout

Layer / File(s) Summary
Kebab trigger spacing
src/components/EnhancedTable/style.less
The kebab trigger adds negative top and bottom margins. Its 28px area no longer increases the table row height.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the table kebab trigger layout fix and its row-rhythm purpose.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-table-kebab-row-height-0812

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/components/EnhancedTable/style.less`:
- Line 88: Insert a blank line between the `padding: 0;` declaration and the
following layout-footprint comment in the relevant style rule, satisfying the
`scss/double-slash-comment-empty-line-before` requirement.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 718fec81-11b8-423b-bf6f-436684cad652

📥 Commits

Reviewing files that changed from the base of the PR and between abeb1c9 and 7eadb39.

📒 Files selected for processing (1)
  • src/components/EnhancedTable/style.less

width: 28px;
height: 28px;
padding: 0;
// Cap layout footprint at 24px (same as sort buttons / inline icons) so rows keep the

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Add the required empty line before the comment.

Insert an empty line between padding: 0; on Line 87 and the comment on Line 88. Stylelint reports scss/double-slash-comment-empty-line-before.

Proposed fix
   padding: 0;
+
   // Cap layout footprint at 24px (same as sort buttons / inline icons) so rows keep the
🧰 Tools
🪛 Stylelint (17.14.0)

[error] 88-88: Expected empty line before comment (scss/double-slash-comment-empty-line-before)

(scss/double-slash-comment-empty-line-before)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/EnhancedTable/style.less` at line 88, Insert a blank line
between the `padding: 0;` declaration and the following layout-footprint comment
in the relevant style rule, satisfying the
`scss/double-slash-comment-empty-line-before` requirement.

Source: Linters/SAST tools

@Fiona2016 Fiona2016 closed this Aug 13, 2026
@Fiona2016 Fiona2016 reopened this Aug 17, 2026
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