Fix
This commit is contained in:
@@ -28,10 +28,7 @@
|
||||
role="tooltip"
|
||||
>
|
||||
{{ tooltip }}
|
||||
<span
|
||||
class="circle-button__tooltip-arrow"
|
||||
:style="arrowStyle"
|
||||
/>
|
||||
<span class="circle-button__tooltip-arrow" :style="arrowStyle" />
|
||||
</div>
|
||||
</Transition>
|
||||
</Teleport>
|
||||
@@ -98,8 +95,8 @@ const updatePosition = async () => {
|
||||
const side = result.placement.split('-')[0]
|
||||
const oppositeSide = { top: 'bottom', bottom: 'top', left: 'right', right: 'left' }[side]
|
||||
arrowStyle.value = {
|
||||
left: arrowData.x != null ? `${arrowData.x}px` : '',
|
||||
top: arrowData.y != null ? `${arrowData.y}px` : '',
|
||||
left: arrowData.x == null ? '' : `${arrowData.x}px`,
|
||||
top: arrowData.y == null ? '' : `${arrowData.y}px`,
|
||||
[oppositeSide]: '-0.25rem',
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user