diff --git a/frontend/src/layouts/main/AppBar.vue b/frontend/src/layouts/main/AppBar.vue index 4913f24..351195b 100644 --- a/frontend/src/layouts/main/AppBar.vue +++ b/frontend/src/layouts/main/AppBar.vue @@ -1,11 +1,10 @@ @@ -134,52 +90,9 @@ - - - W - {{ activeWorkspaceName }} - - - - - - {{ workspace.name }} - {{ workspace.timeZone }} - - - - {{ t('workspaceSelector.createAction') }} - - - - + /> @@ -283,73 +196,6 @@ @apply text-xl; } - .user-menu-wrap { - @apply relative; - z-index: 20; - } - - .workspace-trigger { - @apply max-w-[18rem] pl-2 pr-3; - } - - .user-trigger-icon { - @apply text-base; - } - - .user-trigger-icon-open { - transform: rotate(180deg); - } - - .workspace-trigger-static { - cursor: default; - } - - .workspace-trigger-mark { - @apply flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-xl text-xs font-black uppercase; - background: linear-gradient(135deg, rgba(255, 138, 61, 0.16), rgba(239, 68, 68, 0.14)); - color: #c2410c; - } - - .workspace-trigger-label { - @apply max-w-[11rem] truncate; - } - - .user-menu { - @apply absolute right-0 top-[calc(100%+0.75rem)] flex min-w-[14rem] flex-col gap-1 rounded-[1.25rem] border p-2; - background: rgba(255, 255, 255, 0.96); - border-color: rgba(23, 32, 51, 0.08); - box-shadow: 0 18px 40px rgba(23, 32, 51, 0.12); - z-index: 40; - } - - .user-menu-item { - @apply flex items-center gap-3 rounded-[0.9rem] px-3 py-3 text-left text-sm font-semibold transition-colors; - color: #172033; - } - - .user-menu-item:hover { - background: rgba(23, 32, 51, 0.06); - } - - .user-menu-item-danger { - color: #b91c1c; - } - - .user-menu-item-active { - background: rgba(255, 138, 61, 0.12); - color: #c2410c; - } - - .user-menu-item small { - @apply ml-auto text-xs font-medium; - color: #526178; - } - - .user-menu-item-create { - @apply justify-between border border-dashed; - border-color: rgba(23, 32, 51, 0.12); - } - .menu-action-link { @apply no-underline; } diff --git a/frontend/src/layouts/main/WorkspaceSelector.vue b/frontend/src/layouts/main/WorkspaceSelector.vue new file mode 100644 index 0000000..149be93 --- /dev/null +++ b/frontend/src/layouts/main/WorkspaceSelector.vue @@ -0,0 +1,187 @@ + + + + + + W + {{ activeWorkspaceName }} + + + + + + {{ workspace.name }} + {{ workspace.timeZone }} + + + + {{ t('workspaceSelector.createAction') }} + + + + + + +