This commit is contained in:
sajjadtalkhabi
2026-05-13 03:06:59 +03:30
parent d2a577f254
commit b8ced45375
142 changed files with 3706 additions and 905 deletions
+3 -6
View File
@@ -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',
}
}