Skip to content

Keep DataTable footer actions inside the frame - #221

Open
andrewhuhh wants to merge 4 commits into
mainfrom
fix/table-foot-end-inset
Open

andrewhuhh wants to merge 4 commits into
mainfrom
fix/table-foot-end-inset

Conversation

@andrewhuhh

@andrewhuhh andrewhuhh commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Genuine bug. The DataTable footer pulled its whole actions group out by a button's inline inset (10px), so its ghost buttons' labels would line up with the status text. That pull was larger than the room the foot actually has: 6px of foot padding plus 3px of frame padding. As a result:

  • Plain text in the actions slot, such as end="End of events", has no button padding to absorb the pull, so it ran 10px past the content edge and was cut off at the frame.
  • Even a trailing "Show more" overhung the scroll box by 1px, which gave the table a 1px horizontal scroll and let content peek past the edge at narrow widths.

The negative margin now sits only on a trailing button, so text in the slot stays flush with the content edge. It is also capped at the foot's own inline padding: min(var(--cipher-action-inset), var(--cipher-space-frame-inline)).

At 390px on the table load-more example, after showing every row, "End of events" sits inside the frame and the scroll box no longer overflows (1px before, 0 after). The same holds for the scroll-container example's trailing "Back to Top".

Before After
Before After

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@infisical-review-police

Copy link
Copy Markdown

💬 Discussion in Slack: #pr-review-cipher-221-keep-datatable-footer-actions-inside-the-frame

Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel.

@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Keeps DataTable footer text and buttons inside the frame.

  • DataTable footer text and buttons stay inside the frame.

Both earlier, unnumbered findings are fixed: trailing text keeps its gap after “Show fewer,” and false or "" no longer creates an empty footer. No new actionable issues were found.

Reviews (4) · Last reviewed commit: "Wrap only text end values, so a trailing..." · Reviewed by Greptile

Comment thread src/ui/data.module.css Resolved

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

Comment thread src/ui/data-table.tsx Resolved
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Capy found no issues.

View 3 other findings in Capy.

Open in Capy

…d zero still renders

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant