Skip to content

Commit 2bf2c00

Browse files
Apply Figma design styling to tooltips using PrimeVue passthrough API
- Use Tailwind classes via pt.text and pt.arrow for clean styling - Match Figma specs: dark background (#171718), purple border (#5B5E7D) - Fix tooltip positioning: inputs show left, outputs show right - Proper arrow styling with before:border-[#171718] for chevron shape
1 parent 89d147e commit 2bf2c00

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

src/renderer/extensions/vueNodes/components/InputSlot.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div v-if="renderError" class="node-error p-1 text-red-500 text-xs">⚠️</div>
33
<div
44
v-else
5-
v-tooltip.right="tooltipConfig"
5+
v-tooltip.left="tooltipConfig"
66
class="lg-slot lg-slot--input flex items-center cursor-crosshair group rounded-r-lg h-6"
77
:class="{
88
'opacity-70': readonly,

src/renderer/extensions/vueNodes/components/NodeWidgets.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<!-- Widget Component -->
2828
<component
2929
:is="widget.vueComponent"
30-
v-tooltip.right="widget.tooltipConfig"
30+
v-tooltip.left="widget.tooltipConfig"
3131
:widget="widget.simplified"
3232
:model-value="widget.value"
3333
:readonly="readonly"

src/renderer/extensions/vueNodes/components/OutputSlot.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div v-if="renderError" class="node-error p-1 text-red-500 text-xs">⚠️</div>
33
<div
44
v-else
5-
v-tooltip.left="tooltipConfig"
5+
v-tooltip.right="tooltipConfig"
66
class="lg-slot lg-slot--output flex items-center cursor-crosshair justify-end group rounded-l-lg h-6"
77
:class="{
88
'opacity-70': readonly,

src/renderer/extensions/vueNodes/composables/useNodeTooltips.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,20 @@ export function useNodeTooltips(
8585
showDelay: number
8686
disabled: boolean
8787
appendTo?: HTMLElement
88+
pt?: any
8889
} = {
8990
value: tooltipText,
9091
showDelay: tooltipDelay as number,
91-
disabled: !tooltipsEnabled.value || !tooltipText
92+
disabled: !tooltipsEnabled.value || !tooltipText,
93+
pt: {
94+
text: {
95+
class:
96+
'bg-[#171718] border border-[#5B5E7D] rounded-md px-4 py-2 text-white text-sm font-normal leading-tight max-w-[300px] shadow-none'
97+
},
98+
arrow: {
99+
class: 'before:border-[#171718]'
100+
}
101+
}
92102
}
93103

94104
// If we have a container reference, append tooltips to it

0 commit comments

Comments
 (0)