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

Fix: tooltip on members table #3730

Merged
Merged
Changes from all commits
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
19 changes: 11 additions & 8 deletions packages/ui-components/src/components/layout/tabs/Horizontal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,22 @@
:disabled="item.disabled"
@click="setActiveItem(item)"
>
<div
v-tippy="
item.disabled && item.disabledMessage ? item.disabledMessage : undefined
"
class="absolute top-0 right-0 left-0 bottom-0"
></div>
<div class="flex space-x-2 items-center">
<component
:is="item.icon"
v-if="item.icon"
class="shrink-0 h-4 w-4 stroke-[2px]"
></component>
<span class="min-w-6">{{ item.title }}</span>
/>

<div class="min-w-6">
<span
v-if="item.disabled && item.disabledMessage"
v-tippy="item.disabledMessage"
>
{{ item.title }}
</span>
<span v-else>{{ item.title }}</span>
</div>
<div
v-if="item.count"
class="rounded-full px-2 text-body-3xs transition-all min-w-6"
Expand Down