Skip to content

Commit bf52891

Browse files
committed
update
1 parent b863bc9 commit bf52891

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

reflex_ui/blocks/demo_form.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def select_field(
153153
return rx.el.div(
154154
rx.el.label(
155155
label + (" *" if required else ""),
156-
class_name="block text-sm font-medium text-secondary-12",
156+
class_name="block text-xs lg:text-sm font-medium text-secondary-12 truncate min-w-0",
157157
),
158158
ui.select(
159159
default_value="Select",
@@ -162,7 +162,7 @@ def select_field(
162162
required=required,
163163
class_name="w-full",
164164
),
165-
class_name="flex flex-col gap-1.5",
165+
class_name="flex flex-col gap-1.5 min-w-0",
166166
)
167167

168168

@@ -476,7 +476,7 @@ def demo_form(**props) -> rx.Component:
476476
"Other",
477477
],
478478
),
479-
class_name="grid grid-cols-2 gap-4",
479+
class_name="grid @max-md:grid-cols-1 grid-cols-2 gap-4",
480480
),
481481
select_field(
482482
"How technical are you?",
@@ -488,7 +488,7 @@ def demo_form(**props) -> rx.Component:
488488
demo_form_error_message.value,
489489
rx.el.span(
490490
demo_form_error_message.value,
491-
class_name="text-destructive-10 text-sm font-medium",
491+
class_name="text-destructive-10 text-sm font-medium px-2 py-1 rounded-md bg-destructive-3 border border-destructive-4",
492492
),
493493
),
494494
ui.button(
@@ -499,7 +499,7 @@ def demo_form(**props) -> rx.Component:
499499
),
500500
on_submit=DemoFormStateUI.on_submit,
501501
class_name=ui.cn(
502-
"@container flex flex-col gap-6 p-6",
502+
"@container flex flex-col lg:gap-6 gap-2 p-6",
503503
props.pop("class_name", ""),
504504
),
505505
**props,

0 commit comments

Comments
 (0)