fix: truncate table cell text if too long#2211
Merged
Junjiequan merged 1 commit intomasterfrom Feb 4, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Changing
.label-cellfromdisplay: flextodisplay: blockmay affect existing alignment/layout of cell contents; consider applying the truncation styles to an inner element while keeping the flex container if the original flex behavior is still needed elsewhere. - Setting
cursor: pointeron.label-cellwill show a pointer even for non-interactive cells; consider keepingcursor: inheritor only applyingpointerwhen the cell is actually clickable. - The removal of padding from
.cell-tooltipwill tighten tooltip content; if this was unintentional, consider restoring a reduced but non-zero padding to maintain readability while still matching the new design.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Changing `.label-cell` from `display: flex` to `display: block` may affect existing alignment/layout of cell contents; consider applying the truncation styles to an inner element while keeping the flex container if the original flex behavior is still needed elsewhere.
- Setting `cursor: pointer` on `.label-cell` will show a pointer even for non-interactive cells; consider keeping `cursor: inherit` or only applying `pointer` when the cell is actually clickable.
- The removal of padding from `.cell-tooltip` will tighten tooltip content; if this was unintentional, consider restoring a reduced but non-zero padding to maintain readability while still matching the new design.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
abdimo101
approved these changes
Feb 4, 2026
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.
Description
Added CSS text truncation with text-overflow: ellipsis for table cells so long content is clipped and displayed with “…” at the end.

Motivation
long texts were cut off without indication
Fixes:
Please provide a list of the fixes implemented in this PR
Changes:
Please provide a list of the changes implemented by this PR
Tests included
Documentation
official documentation info
If you have updated the official documentation, please provide PR # and URL of the pages where the updates are included
Backend version
Summary by Sourcery
Improve table cell text handling and header tooltips for dynamic material tables.
Bug Fixes:
Enhancements: