drawer width only accept a number as px unit #16502
Unanswered
amir-armantaheri
asked this question in
Ideas / Proposals
Replies: 2 comments
-
Make a codepen |
Beta Was this translation helpful? Give feedback.
0 replies
-
Howdy Amir. Try this: :width="$q.screen.gt.xs ? 350 : deviceWidth" const deviceWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
why there is no option to pass drawer width as a percentage value for example 80%
i need a dynamic width for different screens.
for now i have handled it by Js and resize event but CSS is a better solution.
it also can accept a function which pass current state of drawer as payload and return a string which can be a px width or a percentage.
this function can be useful for changing your logic in different state of drawer for example i can return 80% percent in desktop mode and 100% in mobile mode.
Beta Was this translation helpful? Give feedback.
All reactions