8000 Site: Most UI elements for templates cannot handle long text · Issue #14007 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content
Site: Most UI elements for templates cannot handle long text #14007
Closed
@Parkreiner

Description

@Parkreiner

Spurred by a customer request. This should be a quick CSS fix; hoping to get this closed out by end of day tomorrow.

Problem

On the /workspaces and /templates routes, several UI elements that deal with templates are not able to handle long text that don't have natural semantic line breakpoints (such as URLs that don't use hyphens to separate words). Long text like this is neither truncated nor forced to have per-character line breaks. In some cases, this makes elements entirely unreadable.

/workspaces page

This was the main customer request. When there are no workspaces available, the UI will show an empty state with templates that can be used. The cards in this empty state cannot handle long text values for either the title or the description.

Screenshot 2024-07-24 at 5 06 41 PM

/templates page

Most template titles cause the user count to overflow in an awkward way, with too much text leading relative to the text size. Text doesn't need to be especially long to trigger this edge case.
Screenshot 2024-07-24 at 4 39 31 PM
Just because these boxes are so thin, I think the user count should be moved down, inline with the "default" text. That would also give the titles a lot more room.

Similar to the workspaces issue, if a long enough text value with no natural line breaks is put in a template description, it overflows past the container. In this case, this doesn't obscure any nearby elements, but it does make the affected template a lot harder to read.
Screenshot 2024-07-24 at 4 55 08 PM

The titles themselves also don't handle long text like this well
Screenshot 2024-07-24 at 4 57 51 PM

Steps to reproduce

  1. Create a template with a long title and/or description (something like 100+ characters).
  2. Navigate to the /workspaces page while there are no workspaces associated with the account
  3. Afterwards, navigate to the /templates page

Other notes

Not strictly something that affects functionality, but we have a lot of unused space in the main Templates page. Going to see what I can do to update this without changing the aspect ratios on the cards too much
Screenshot 2024-07-24 at 5 01 23 PM

Metadata

Metadata

Assignees

Labels

design neededRequest for more beautygood first issueEasily solved issues suitable for starters and community contributorss3Bugs that confuse, annoy, or are purely cosmeticsiteArea: frontend dashboard

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0