Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to resize vuetify components?

Tags:

I recently use Vuetify to implement some UI designs. However, I found the default input component (such as v-text-field, v-select) are too large. I found that I can adjust the width of them, but for the height and font size, how can I change them?

like image 956
Ternence.Lin Avatar asked Apr 05 '18 03:04

Ternence.Lin


People also ask

Is Vuetify customizable?

Customizing. By default, Vuetify has a standard theme applied for all components. This can be easily changed. Simply pass a theme property to the Vuetify constructor.

How do you use V resize?

We can use the v-resize directive to call a function when the window resizes. We add the v-resize directive on the v-row so that we can run the onResize method when the window resizes. Then we'll see the value of the this. windowSize state on the template.

Which is better quasar or Vuetify?

Quasar framework is often compared against Vuetify since both of them implement Material Design guidelines. Quasar provides a more controlled ecosystem that can make you productive on web/desktop/mobile UI development and also provide “more useful” components.

What is V spacer in Vuetify?

The v-spacer component is useful when you want to fill available space or make space between two components.


1 Answers

I have had some success using CSS transform to shrink everything:

.compact-form {     transform: scale(0.875);     transform-origin: left; } 

Just add that to your form. Its takes the font-size down to 14px (instead of 16) and shrinks the checkboxes and so on as well.

like image 117
David Tinker Avatar answered Sep 21 '22 18:09

David Tinker