Skip to content

Commit

Permalink
ensure workspace selector placement always bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Dec 8, 2024
1 parent e4b129d commit f97597e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions workspaces/widgets.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import gooey_gui as gui
from django.core.exceptions import ValidationError

from app_users.models import AppUser
from daras_ai_v2 import icons, settings
from daras_ai_v2.fastapi_tricks import get_route_path
from handles.models import COMMON_EMAIL_DOMAINS
from .models import Workspace, WorkspaceInvite, WorkspaceRole
from .models import Workspace


SESSION_SELECTED_WORKSPACE = "selected-workspace-id"
Expand All @@ -31,7 +30,7 @@ def global_workspace_selector(user: AppUser, session: dict):
except (KeyError, IndexError):
current = workspaces[0]

popover, content = gui.popover(interactive=True)
popover, content = gui.popover(interactive=True, placement="bottom")

with popover:
if current.is_personal and current.created_by_id == user.id:
Expand Down

0 comments on commit f97597e

Please sign in to comment.