Commit d9fd1fc
authored
fix: truncate table cell text if too long (#2211)
## Description
Added CSS text truncation with text-overflow: ellipsis for table cells
so long content is clipped and displayed with “…” at the end.
<img width="854" height="359" alt="image"
src="https://github.com/user-attachments/assets/8a520b3c-2aeb-4ffb-aa05-fb101db4d404"
/>
## Motivation
long texts were cut off without indication
## Fixes:
Please provide a list of the fixes implemented in this PR
* Items added
## Changes:
Please provide a list of the changes implemented by this PR
* changes made
## Tests included
- [ ] Included for each change/fix?
- [ ] Passing? (Merge will not be approved unless this is checked)
## Documentation
- [ ] swagger documentation updated \[required\]
- [ ] official documentation updated \[nice-to-have\]
### 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
- [ ] Does it require a specific version of the backend
- which version of the backend is required:
## Summary by Sourcery
Improve table cell text handling and header tooltips for dynamic
material tables.
Bug Fixes:
- Ensure long table cell labels are truncated with ellipsis instead of
overflowing or being cut off without indication.
Enhancements:
- Adjust label cell styling to use block layout with pointer cursor and
full-width ellipsis truncation.
- Refine header cell tooltip behavior by positioning it above, anchoring
it at the origin, and adding a slight show delay.
- Simplify cell tooltip styling by removing extra padding for a more
compact appearance.1 parent 460ea5b commit d9fd1fc
2 files changed
Lines changed: 9 additions & 4 deletions
File tree
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
156 | 159 | | |
157 | 160 | | |
158 | 161 | | |
| |||
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
263 | 266 | | |
264 | 267 | | |
265 | 268 | | |
266 | | - | |
267 | 269 | | |
268 | 270 | | |
269 | 271 | | |
| |||
0 commit comments