Skip to content

Commit 3a4436a

Browse files
committed
fix: header wraps into multiple lines due to long workspace name
1 parent d02aeb6 commit 3a4436a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

workspaces/widgets.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ def global_workspace_selector(user: AppUser, session: dict):
5454
display_name = current.display_name(user)
5555
with gui.div(className="d-inline-flex align-items-center gap-2 text-truncate"):
5656
gui.html(f"{current.html_icon()}")
57-
gui.html(html.escape(display_name), className="d-none d-md-inline")
57+
gui.html(
58+
html.escape(display_name),
59+
className="d-none d-md-inline text-truncate",
60+
style={"maxWidth": "150px"},
61+
)
5862
gui.html('<i class="ps-1 fa-regular fa-chevron-down"></i>')
5963

6064
with (

0 commit comments

Comments
 (0)