Thomas Heartman
|
5c1cd49aaa
|
fix: handle long owner names for projects (#7215)
This change updates the new project card footer to better handle long
names. Previously, if a name was too long to fit on a single line,
it'd wrap. It didn't cause any layout shift, but it made the card look
off.
So instead of wrapping, we now truncate the name and add an ellipsis.
To achieve this, I changed the layout to grid instead of flexbox and
removed a nested flex container.
Before:

After:

Other cards remain the same, as shown here (new code on left, old code
on right):
<img width="601" alt="image"
src="https://github.com/Unleash/unleash/assets/17786332/009c5d5d-3f9d-4640-86a1-3b6afcd04041">
|
2024-05-30 10:03:21 +02:00 |
|