From c90e9af442145cdd433be583428e0c455b14aa94 Mon Sep 17 00:00:00 2001 From: pourhakimi <84860195+pourhakimi@users.noreply.github.com> Date: Fri, 15 Nov 2024 16:01:48 +0200 Subject: [PATCH] Patched (minor) site issue: scaling + UI --- buridan_ui/buridan_ui.py | 2 +- buridan_ui/templates/drawer/drawer.py | 24 ++++++++++++++++-------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/buridan_ui/buridan_ui.py b/buridan_ui/buridan_ui.py index b95a3a1..53d3c1f 100644 --- a/buridan_ui/buridan_ui.py +++ b/buridan_ui/buridan_ui.py @@ -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: diff --git a/buridan_ui/templates/drawer/drawer.py b/buridan_ui/templates/drawer/drawer.py index 2d9b466..9e11ede 100644 --- a/buridan_ui/templates/drawer/drawer.py +++ b/buridan_ui/templates/drawer/drawer.py @@ -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) @@ -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("/"),