Repository navigation
Keep DataTable footer actions inside the frame - #221
Open
andrewhuhh wants to merge 4 commits into
Open
andrewhuhh wants to merge 4 commits into
andrewhuhh wants to merge 4 commits into
Conversation
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
💬 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. |
[Medium impact] The PR appears safe to merge.
|
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…d zero still renders Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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.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".