Fix: Always show workspace create button (#4397)

This commit is contained in:
Mike
2025-04-14 10:40:03 +02:00
committed by GitHub
parent 68dc4c91c1
commit 79805f25d3
2 changed files with 4 additions and 2 deletions
@@ -54,6 +54,7 @@
title="Workspaces"
:icon-click="isGuest ? undefined : handlePlusClick"
icon-text="Create workspace"
always-show-icon
>
<HeaderWorkspaceSwitcherItem
v-for="item in workspaces"
@@ -41,8 +41,8 @@
<button
v-if="iconClick"
v-tippy="iconText ? iconText : undefined"
class="hidden group-hover:flex p-1 shrink-0 hover:bg-primary-muted rounded text-foreground-2"
:class="noHover ? '' : 'mr-2'"
class="group-hover:flex p-1 shrink-0 hover:bg-primary-muted rounded text-foreground-2"
:class="[noHover ? '' : 'mr-2', alwaysShowIcon ? 'flex' : 'hidden']"
@click="iconClick"
>
<Edit v-if="icon === 'edit'" class="h-4 w-4" />
@@ -74,6 +74,7 @@ defineProps<{
iconClick?: () => void
noHover?: boolean
nested?: boolean
alwaysShowIcon?: boolean
}>()
const isCollapsed = defineModel<boolean>('collapsed')