how to change the q-layout-drawer's width?
-
When i write a wpa projsct, i want a huge drawer to almost cover 80%vh.But the default size is too small .What shall i do?
-
Use the “width” prop? It can only use pixels though. Maybe you’ll need to create a computed property to figure out the right size for the current screen.
In the end, you might want to rethink your use of the drawer with something else.
Scott
-
@s-molinari
I used stylus and “:content-style” property to control width ,it dosn’t work.
For example like this
<q-layout-drawer :content-style="{width: ‘800px’}" side=“right” > -
@bosconovitchi check: https://quasar-framework.org/components/layout-drawer.html#QLayoutDrawer-Vue-Properties .
its
:width
prop! -
@max
Thanks a lot.I was using the old version guide.