Is there a way to expand the width of the dialog? #3110
Answered
by
picklelo
hragbalian
asked this question in
Q&A
-
I've tried modifying the size of the content to "4" and inserting an inline style modifying "width", but neither seem to have any effect. |
Beta Was this translation helpful? Give feedback.
Answered by
picklelo
Apr 19, 2024
Replies: 1 comment 1 reply
-
@hragbalian It looks like they're setting a rx.dialog.root(
rx.dialog.trigger(rx.button("Open Dialog")),
rx.dialog.content(
rx.dialog.title("Welcome to Reflex!"),
rx.dialog.description(
"This is a dialog component. You can render anything you want in here.",
),
rx.dialog.close(
rx.button("Close Dialog", size="3"),
),
max_width="100vw", # Make this a bigger value, it's fixed by default.
width="100vw",
),
) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hragbalian
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@hragbalian It looks like they're setting a
max_width
prop on the content - I was able to make it wider like this: