Skip to content

Commit

Permalink
fix(ui): truncates richtext fields when displaying within a joins fie…
Browse files Browse the repository at this point in the history
…ld (#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)
  • Loading branch information
PatrikKozak authored Dec 11, 2024
1 parent 23e2f7b commit d9efd19
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/ui/src/elements/RelationshipTable/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@
}

.table {
table {
width: 100%;
overflow: auto;

[class^='cell'] > p,
[class^='cell'] > span,
[class^='cell'] > a {
line-clamp: 4;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
overflow: hidden;
display: -webkit-box;
max-width: 100vw;
}
}

th,
td:first-child {
min-width: 0;
Expand Down

0 comments on commit d9efd19

Please sign in to comment.