Skip to content

Commit

Permalink
Patched (minor) site issue: scaling + UI
Browse files Browse the repository at this point in the history
  • Loading branch information
LineIndent committed Nov 15, 2024
1 parent 08f1433 commit c90e9af
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion buridan_ui/buridan_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def export_page() -> callable:

# ... set the DEV var to True for faster hot reload
# ... ... change the ENV to match the page in progress
DEV: bool = False
DEV: bool = True

if DEV:
# ... ex: working with X item Y -> set the ENV data as such:
Expand Down
24 changes: 16 additions & 8 deletions buridan_ui/templates/drawer/drawer.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,23 @@


def drawer_menu_header(title: str, icon: str):
return rx.badge(
rx.hstack(
rx.text(title, size="1", color=active, weight="bold"),
rx.icon(tag=icon, size=15, color=active),
**DrawerStyle.header_components,
),
**DrawerStyle.header,
return rx.text(
title,
size="1",
color=active,
weight="bold",
padding="0.75em 1.25em",
)

# return rx.badge(
# rx.hstack(
# rx.text(title, size="1", color=active, weight="bold"),
# # rx.icon(tag=icon, size=15, color=active),
# **DrawerStyle.header_components,
# ),
# **DrawerStyle.header,
# )


def drawer_menu_link(stack: rx.vstack):
return rx.vstack(stack, **DrawerStyle.drawer_menu_link)
Expand All @@ -33,7 +41,7 @@ def drawer():
rx.hstack(
rx.heading(
"buridan/ui",
size="5",
size="4",
font_weight="900",
cursor="pointer",
on_click=rx.redirect("/"),
Expand Down

0 comments on commit c90e9af

Please sign in to comment.