[Feature Request] v-select auto width depending of content
See original GitHub issueProblem to solve
It would allow for a better flow of content depending of the usage and better UI overall.
Proposed solution
<v-select
:items="$i18n.locales"
:item-value="code"
:to="switchLocalePath(locale)"
v-model="locale"
class="pa-0 ma-0"
item-text="name"
hide-details
single-line
dense
autowidth
/>
Check google sign in page at the bottom.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:15
- Comments:24 (4 by maintainers)
Top Results From Across the Web
Vuetify v-select component width changing - Stack Overflow
The basic problem is that v-select has some styling (specifically padding and margin) that does not work very well at small widths.
Read more >Auto resize select tag element width according to option
In this blog I will explain about Auto resize select tag element width according to option.
Read more >Autocomplete component - Vuetify
The v-autocomplete component offers simple and flexible type-ahead functionality. This is useful when searching large sets of data or even ...
Read more >Cap Value (FTM-V) Select UMA Foundry Partners LLC
Morgan Stanley investment advisory programs may require a minimum asset level and, depending on your specific investment objectives and financial position, may ...
Read more >IBM Security AppScan Standard: User Guide
In order for AppScan to execute Adobe Flash content during scanning, you must have a ... automatically creates a test (or tests) based...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So using the current version of Vuetify (2.4.5), here is what works for me.
Add a class to the select to indicate a fit style.
Create the following
CSS
to target the select element. Thetext-overflow
value will prevent a pesky ellipsis.Besides de CSS trick
.v-select__selections input { display: none}
I also put thev-select
insde av-col
and set itscols="auto"
. Works great!!