Skip to content

Improved mini-table resource name truncation#3182

Draft
benjaminleonard wants to merge 1 commit intomainfrom
fix-minitable-name-truncation
Draft

Improved mini-table resource name truncation#3182
benjaminleonard wants to merge 1 commit intomainfrom
fix-minitable-name-truncation

Conversation

@benjaminleonard
Copy link
Copy Markdown
Contributor

Fixes #2999

image

The problem with the <Truncate> component is that it isn't aware of the size of the container, so you need a very conservative number and even then, due to the variable width of characters, it is not a reliable solution.

Let's assume we always want the first cell to fill the width (needs some investigation in case there are outliers here). We can absolutely position the text within it, fill the size of the container and CSS truncate the text. Also prevents either from wrapping.

I still think we might want a pattern to show more properties that are not represented here, e.g. source. Or we allow the user to re-open the modal to see the properties and edit their choices.

Draft, needs further testing.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
console Ready Ready Preview Apr 15, 2026 3:57pm

Request Review

@benjaminleonard
Copy link
Copy Markdown
Contributor Author

Okay this is problematic if the other columns are long also, might need another approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle long disk names in instance create disks table

1 participant