Skip to content

Commit

Permalink
Fix for menu buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkolenc committed Jan 31, 2025
1 parent 6020d29 commit f68ad52
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/package/pathways_app/src/cli/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ def render_route(_):
app.on_project_changed.append(rerender)

page.on_route_change = render_route
page.go("/project")
page.go("/")
10 changes: 8 additions & 2 deletions source/package/pathways_app/src/controls/menu_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def __init__(self, app: PathwaysApp):
controls=[
ft.SubmenuButton(
ft.Text(
"Project", style=theme.text.menu_button
"Project",
style=theme.text.menu_button,
no_wrap=True,
),
controls=[
ft.MenuItemButton(
Expand All @@ -56,7 +58,11 @@ def __init__(self, app: PathwaysApp):
),
ft.Container(width=10),
ft.SubmenuButton(
ft.Text("Help", style=theme.text.menu_button),
ft.Text(
"Help",
style=theme.text.menu_button,
no_wrap=True,
),
controls=[
ft.MenuItemButton(
content=ft.Text("About Pathways"),
Expand Down
5 changes: 4 additions & 1 deletion source/package/pathways_app/src/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ class DefaultThemeTextStyles:
)

menu_button = ft.TextStyle(
font_family=font_family, size=14, color=colors.true_white
font_family=font_family,
size=14,
color=colors.true_white,
overflow=ft.TextOverflow.VISIBLE,
)

button = ft.TextStyle(
Expand Down

0 comments on commit f68ad52

Please sign in to comment.