Skip to content

Commit d9efd19

Browse files
authored
fix(ui): truncates richtext fields when displaying within a joins field (#9911)
### What? Previously, `richtext` fields were not properly truncated when displayed in a `joins` field. `Before`: ![Screenshot 2024-12-11 at 3 42 13 PM](https://github.com/user-attachments/assets/a6f44248-8cb9-4a38-a74c-eaa88b739601) ### How? Now - we've added proper css styling to truncate extended `richtext` elements inside a `joins` table. `After`: ![Screenshot 2024-12-11 at 3 41 53 PM](https://github.com/user-attachments/assets/ae846c50-2e29-411f-b056-20e4caf3ef20)
1 parent 23e2f7b commit d9efd19

File tree

1 file changed

+16
-0
lines changed
  • packages/ui/src/elements/RelationshipTable

1 file changed

+16
-0
lines changed

packages/ui/src/elements/RelationshipTable/index.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,22 @@
1919
}
2020

2121
.table {
22+
table {
23+
width: 100%;
24+
overflow: auto;
25+
26+
[class^='cell'] > p,
27+
[class^='cell'] > span,
28+
[class^='cell'] > a {
29+
line-clamp: 4;
30+
-webkit-box-orient: vertical;
31+
-webkit-line-clamp: 4;
32+
overflow: hidden;
33+
display: -webkit-box;
34+
max-width: 100vw;
35+
}
36+
}
37+
2238
th,
2339
td:first-child {
2440
min-width: 0;

0 commit comments

Comments
 (0)