How to set menu full width when using Dropdown and Popover #2102
-
I already use both Dropdown and Popover in my project. With Dropdown I want it scale full width when screen in mobile version, and Popover I want it keep the static width in every screen dimension.
For full width solution I just override width for [data-radix-popper-content-wrapper] and it's work, but it also effect the popover. So how to style for each Dropdown or Popover component of Radix for each of them to not effect each other. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
You can use |
Beta Was this translation helpful? Give feedback.
-
Oh yes, it's work. Thank you, @joaom00. I think it's the only way to custom for each of them. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to use |
Beta Was this translation helpful? Give feedback.
You can use
width: 100vw
inDropdown.Content
andPopover.Content
instead of usingdata-radix-popper-content-wrapper