Skip to content

Commit c13fd64

Browse files
committed
fixed hosting banner close function
1 parent 47ddc8d commit c13fd64

File tree

2 files changed

+25
-18
lines changed

2 files changed

+25
-18
lines changed

pcweb/components/hosting_banner.py

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,36 @@ def hide_banner(self):
2121
def hosting_banner() -> rx.Component:
2222
return rx.cond(
2323
HostingBannerState.show_banner,
24-
rx.link(
25-
rx.box(
24+
rx.hstack(
25+
rx.link(
2626
rx.box(
27-
rx.text(
28-
"Reflex Cloud - ",
29-
rx.el.span(
30-
"Fast, secure & scalable hosting. One command to deploy.",
31-
class_name="text-slate-12 font-medium text-sm",
27+
rx.box(
28+
rx.text(
29+
"Reflex Cloud - ",
30+
rx.el.span(
31+
"Fast, secure & scalable hosting. One command to deploy.",
32+
class_name="text-slate-12 font-medium text-sm",
33+
),
34+
class_name="text-slate-12 font-semibold text-sm z-[1]",
3235
),
33-
class_name="text-slate-12 font-semibold text-sm z-[1]",
34-
),
35-
rx.el.button(
36-
"Live Now!",
37-
class_name="text-green-11 h-[1.5rem] rounded-md bg-green-4 px-1.5 text-sm font-semibold z-[1] items-center justify-center shrink-0",
36+
rx.el.button(
37+
"Live Now!",
38+
class_name="text-green-11 h-[1.5rem] rounded-md bg-green-4 px-1.5 text-sm font-semibold z-[1] items-center justify-center shrink-0",
39+
),
40+
class_name="flex items-center gap-4",
3841
),
39-
class_name="flex items-center gap-4",
4042
),
43+
glow(),
44+
href=REFLEX_CLOUD_URL,
45+
underline="none",
46+
is_external=True,
4147
),
4248
rx.icon(
4349
"x",
4450
on_click=HostingBannerState.hide_banner,
4551
size=16,
46-
class_name="z-[1] cursor-pointer hover:!text-slate-11 transition-color !text-slate-9 absolute right-4",
52+
class_name="cursor-pointer hover:!text-slate-11 transition-color !text-slate-9 absolute right-4 z-10",
4753
),
48-
glow(),
49-
href=REFLEX_CLOUD_URL,
50-
underline="none",
51-
is_external=True,
5254
class_name="px-4 lg:px-6 w-screen h-auto lg:h-[3.5rem] shadow-[inset_0_-1px_0_0_var(--c-slate-3)] flex items-center justify-center bg-slate-1 flex-row gap-4 overflow-hidden relative lg:py-0 py-2 max-w-full",
5355
),
5456
)

pcweb/pcweb.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
from pcweb.telemetry import get_pixel_website_trackers
1313
from pcweb.meta.meta import favicons_links
1414

15+
16+
1517
# This number discovered by trial and error on Windows 11 w/ Node 18, any
1618
# higher and the prod build fails with EMFILE error.
1719
WINDOWS_MAX_ROUTES = int(os.environ.get("REFLEX_WEB_WINDOWS_MAX_ROUTES", "100"))
@@ -50,6 +52,9 @@
5052
)
5153

5254

55+
56+
57+
5358
# XXX: The app is TOO BIG to build on Windows, so explicitly disallow it except for testing
5459
if sys.platform == "win32":
5560
if not os.environ.get("REFLEX_WEB_WINDOWS_OVERRIDE"):

0 commit comments

Comments
 (0)