Skip to content

How to change drawer width? #161

Closed Answered by falkoschindler
holmesjason asked this question in Q&A
Discussion options

You must be logged in to vote

These Quasar "props" need to be passed to the .props() method. The following example shows a very narrow drawer:

@ui.page('/')
def page():
    ui.label('Content')
    with ui.left_drawer().props('width=80 bordered'):
        ui.label('Drawer')

In contrast, the .style() method expects CSS. But this has no effect in this case because Quasar does quite some magic in creating the page layout, so you can't manipulate the element's style directly.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by holmesjason
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants