Vuetify: [Bug Report] v-chip doesn't support long text

Created on 29 Jul 2019  路  2Comments  路  Source: vuetifyjs/vuetify

Environment

Vuetify Version: 2.0.2
Vue Version: 2.6.10
Browsers: Chrome 69.0.3497.100
OS: Windows 10

Steps to reproduce

Look at chip on page load

Expected Behavior

The height of the chip should auto adjust to fit the content, and the close icon (if set to show) should be right aligned and centered vertically. Or it should get cut off and eclipsed with a hover over title.

Actual Behavior

Chip height is the same and text overflows.

Reproduction Link

https://codepen.io/anon/pen/oKBrmd?&editable=true&editors=111

VChip bug maybe

Most helpful comment

Multi line chips may not look good. If that is the case, can it at least get a max-length prop, where I can set like say 150 chars, and if it goes over, it gets truncated with elipses? Or have it support multilines.

If going with elipses route, maybe have a title prop with the whole text, so they can see it on hover over.

All 2 comments

I'll need to evaluate if there is any specific information from spec and if not how we should proceed. This would be the case for a lot of components such as v-btn.

Workaround: https://codepen.io/johnjleider/pen/NQjWEm?&editable=true&editors=111

Multi line chips may not look good. If that is the case, can it at least get a max-length prop, where I can set like say 150 chars, and if it goes over, it gets truncated with elipses? Or have it support multilines.

If going with elipses route, maybe have a title prop with the whole text, so they can see it on hover over.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alterhu2020 picture alterhu2020  路  3Comments

jofftiquez picture jofftiquez  路  3Comments

dschreij picture dschreij  路  3Comments

dohomi picture dohomi  路  3Comments

aaronjpitts picture aaronjpitts  路  3Comments