Skip to content

Commit 7dab568

Browse files
committed
style: Simplify calendar overlay - remove header text, reduce padding
1 parent 92c1b74 commit 7dab568

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

reflex_ui/blocks/demo_form.py

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -727,27 +727,16 @@ def calendar_overlay() -> rx.Component:
727727
),
728728
# Calendar container
729729
rx.el.div(
730-
rx.el.div(
731-
rx.el.h1(
732-
"Book a Demo",
733-
class_name="text-xl font-bold text-secondary-12",
734-
),
735-
rx.el.p(
736-
"Select a time that works for you.",
737-
class_name="text-sm text-secondary-11",
738-
),
739-
ui.button(
740-
ui.hi("Cancel01Icon"),
741-
variant="ghost",
742-
size="icon-sm",
743-
on_click=DemoFormState.go_back_from_calendar,
744-
class_name="text-secondary-11 absolute top-4 right-4",
745-
aria_label="Close",
746-
),
747-
class_name="flex flex-col gap-0.5 px-6 pt-4 pb-2 relative",
730+
ui.button(
731+
ui.hi("Cancel01Icon"),
732+
variant="ghost",
733+
size="icon-sm",
734+
on_click=DemoFormState.go_back_from_calendar,
735+
class_name="text-secondary-11 absolute top-3 right-3 z-10",
736+
aria_label="Close",
748737
),
749738
rx.el.div(
750-
class_name="w-full min-h-[600px] overflow-auto cal-embed-container px-4 pb-4",
739+
class_name="w-full min-h-[550px] overflow-auto cal-embed-container",
751740
),
752741
class_name="relative bg-secondary-1 rounded-xl shadow-2xl w-full max-w-4xl max-h-[90vh] overflow-auto",
753742
on_mount=DemoFormState.init_cal_embed,

0 commit comments

Comments
 (0)