Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tile name overlaps with more options icon #2439

Open
1 task done
jeanugroho-Bentley opened this issue Feb 15, 2025 · 1 comment
Open
1 task done

Tile name overlaps with more options icon #2439

jeanugroho-Bentley opened this issue Feb 15, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@jeanugroho-Bentley
Copy link

Describe the bug (current behavior)

When the tile name is too long, it overlaps with the more options icon

Image

Expected Behavior

The tile name shouldn't overlap with the more options icon

Link to minimal repro

https://stackblitz.com/edit/github-zvoxjsmy?file=src%2FApp.tsx

Steps To Reproduce

Just open the forked repo. The UI from the code should look like the following:

Image

Package Version

  • I'm using the latest version of iTwinUI.

Anything else?

No response

@jeanugroho-Bentley jeanugroho-Bentley added the bug Something isn't working label Feb 15, 2025
@r100-stack
Copy link
Member

r100-stack commented Feb 24, 2025

Thanks for the issue. We have been discussing a clean way to address this but think we need a bit more context to proceed.

Could you please elaborate a bit more on your use case? Also, what do you show in the tile name and how long do those texts usually get? Also, would you prefer text wrapping (excess text goes on to the next line) or truncation (all text on a single line with ellipses)?

Also, just to mention, we noticed a slight different between using Tile.Name + the name prop vs. Tile.Name + Tile.NameLabel (composition API docs). The difference is that the former causes text to wrap where the latter causes text to truncate (sandbox).

// Text wraps
<Tile.Name name="…" />;

// Text truncates
<Tile.Name>
  <Tile.NameLabel></Tile.NameLabel>
</Tile.Name>;

We are considering making Tile.Name + the name prop work similarly to Tile.Name + Tile.NameLabel in a patch release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants