You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, Im stuck on this styling issue but I feel like it should be solvable, does anyone have any pointers or advice for me?
Im trying to build this UI Element:
The trigger for the dropdown is only the right part with the icon in it, the left button does not trigger the content.
I cant figure out how to have the content width match the width of the parent container (the button and the trigger together)
I know radix provides
--radix-popover-trigger-width which I think would solve my problem, but since the width im trying to match is not only the trigger im not sure how to do this. I attempted to wrap it with the Anchor and using w-full on the content:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, Im stuck on this styling issue but I feel like it should be solvable, does anyone have any pointers or advice for me?
Im trying to build this UI Element:
The trigger for the dropdown is only the right part with the icon in it, the left button does not trigger the content.
I cant figure out how to have the content width match the width of the parent container (the button and the trigger together)
I know radix provides
--radix-popover-trigger-width which I think would solve my problem, but since the width im trying to match is not only the trigger im not sure how to do this. I attempted to wrap it with the Anchor and using w-full on the content:
trying this, I end up with this and I cant find a way to match the widths other than hard coding a width:
Thanks in advance for any pointers
Beta Was this translation helpful? Give feedback.
All reactions