Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): sidebar: beta badge #1272

Merged
merged 3 commits into from
Jun 19, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: change badge color
  • Loading branch information
ssiyad committed Jun 19, 2023
commit 7ef603c7e0aa7795b92415fcd8ff57df0bc6c21f
26 changes: 12 additions & 14 deletions desk/src/components/desk/sidebar/SidebarLink.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div
class="flex h-7 cursor-pointer items-center justify-between rounded-lg px-1.5 text-gray-700 transition-all duration-300 ease-in-out"
class="flex h-7 cursor-pointer items-center rounded-lg px-1.5 text-gray-700 transition-all duration-300 ease-in-out"
:class="{
'w-full': sidebarStore.isExpanded,
'w-7': !sidebarStore.isExpanded,
Expand All @@ -10,20 +10,18 @@
}"
@click="handle"
>
<div class="flex items-center">
<component :is="icon" class="h-4 w-4 shrink-0"></component>
<div
class="ml-2 shrink-0 text-base transition-all duration-300 ease-in-out"
:class="{
'opacity-100': sidebarStore.isExpanded,
'opacity-0': !sidebarStore.isExpanded,
'-z-50': !sidebarStore.isExpanded,
}"
>
{{ label }}
</div>
<component :is="icon" class="h-4 w-4 shrink-0"></component>
<div
class="ml-2 flex shrink-0 grow items-center justify-between text-base transition-all duration-300 ease-in-out"
:class="{
'opacity-100': sidebarStore.isExpanded,
'opacity-0': !sidebarStore.isExpanded,
'-z-50': !sidebarStore.isExpanded,
}"
>
{{ label }}
<Badge v-if="isBeta" theme="orange" variant="subtle">beta</Badge>
</div>
<Badge v-if="isBeta" theme="blue" variant="subtle">beta</Badge>
</div>
</template>

Expand Down
Loading