Skip to content

Commit f89e6c0

Browse files
committed
fix(projects): fix pin-toggler toolTip zIndex
1 parent 6b5132c commit f89e6c0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/common/pin-toggler.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const icon = computed(() => (props.pin ? 'mdi-pin-off' : 'mdi-pin'));
1717
<ButtonIcon
1818
:tooltip-content="pin ? $t('icon.pin') : $t('icon.unpin')"
1919
tooltip-placement="bottom-start"
20-
trigger-parent
20+
:z-index="100"
2121
>
2222
<SvgIcon :icon="icon" />
2323
</ButtonIcon>

src/components/custom/button-icon.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ interface Props {
1717
tooltipContent?: string;
1818
/** Tooltip placement */
1919
tooltipPlacement?: PopoverPlacement;
20+
zIndex?: number;
2021
}
2122
2223
const props = withDefaults(defineProps<Props>(), {
2324
class: 'h-36px text-icon',
2425
icon: '',
2526
tooltipContent: '',
26-
tooltipPlacement: 'bottom'
27+
tooltipPlacement: 'bottom',
28+
zIndex: 98
2729
});
2830
2931
interface ButtonProps {
@@ -58,7 +60,7 @@ const cls = computed(() => {
5860
</DefineButton>
5961
<!-- define component end: Button -->
6062

61-
<NTooltip v-if="tooltipContent" :placement="tooltipPlacement" :z-index="98">
63+
<NTooltip v-if="tooltipContent" :placement="tooltipPlacement" :z-index="zIndex">
6264
<template #trigger>
6365
<Button :class-name="cls" v-bind="$attrs">
6466
<slot>

0 commit comments

Comments
 (0)