Vuetify: Feature Request: styling for inline form fields

Created on 17 Jun 2017  路  9Comments  路  Source: vuetifyjs/vuetify

When we include forms with inline items, the spacing changes, as shown in the image below:

image

It would be nice to have consistent spacing when putting inline text fields on a form. It's not critical, in any way, but presents users with a cleaner, more polished interface.

https://codepen.io/jijoel/pen/VWPyaq

Most helpful comment

If you are using a grid, then you should probably use a grid-list if you want spacing between different flex items, this is how flexbox works. The only difference is that we used to always apply some level of padding between flex items, and now we don't. If you feel you have a legitimate issue, please create a new ticket.

All 9 comments

I don't quite understand what you are asking for. Can you help clarify a bit? The image looks fine to me, so I assume I'm not understanding properly.

My guess is he's talking about the spacing between Street Address and the inputs below. At a glance it looks to be larger than between Street Address and Country

That is correct. The vertical spacing between the Country and Street Address lines is 70 pixels. The spacing between the Street Address and the City is 88 pixels.

The .input-group class has a { margin: 18px 0 }. I think that, when they stack on top of each other, the margin collapses.

I was able to get even spacing using a { margin-top: -18px } on the v-layout. I set this in my project:

.input-group + .layout {
  margin-top: -18px;
}

It looks like the actual margin size is specified by the $input-group-margin variable (_variables.styl:383). I don't know stylus well enough to put in a PR. :-(

Thank you.

This can be fixed by adjusting your markup. You need to have everything inside of the grid.

https://codepen.io/johnjleider/pen/zzEPwJ

This can be fixed by adjusting your markup. You need to have everything inside of the grid.

When doing it this way you end up with 2 fields stuck together with no padding or margin between. As you can see from your example:

image

Which looks almost bearable, until you get validation errors next to a character count, then they almost merge into one another:

image

This happens even when applying the m spacing classes to either the v-flex or the v-text-field.

Pen https://codepen.io/anon/pen/LePeLy

If you are using a grid, then you should probably use a grid-list if you want spacing between different flex items, this is how flexbox works. The only difference is that we used to always apply some level of padding between flex items, and now we don't. If you feel you have a legitimate issue, please create a new ticket.

Thank you, that works perfectly.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sebastianmacias picture sebastianmacias  路  3Comments

itanka9 picture itanka9  路  3Comments

jofftiquez picture jofftiquez  路  3Comments

gluons picture gluons  路  3Comments

paladin2005 picture paladin2005  路  3Comments