fix: use inset-x-0 instead of top-0 left-0 w-full for label positioning

Addresses review feedback:
https://github.com/Comfy-Org/ComfyUI_frontend/pull/10034#discussion_r2950842585
This commit is contained in:
bymyself
2026-03-24 12:24:52 -07:00
committed by Connor Byrne
parent 54764b4bed
commit 90d083bae1

View File

@@ -10,7 +10,7 @@
<label
v-if="!hideLayoutField"
:for="id"
class="pointer-events-none absolute top-0 left-0 z-10 w-full rounded-t-lg bg-component-node-widget-background px-3 pt-1.5 pb-0.5 text-2xs text-muted-foreground"
class="pointer-events-none absolute inset-x-0 top-0 z-10 rounded-t-lg bg-component-node-widget-background px-3 pt-1.5 pb-0.5 text-2xs text-muted-foreground"
>
{{ displayName }}
</label>