mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-27 11:29:53 +00:00
Fix roundness of slot error indicator in vue (#8123)
When a node has a missing input connection, the slot is highlighted with a red outline. This PR makes the error indicator round like the slot instead of an oval. | Before | After | | ------ | ----- | | <img width="360" alt="before" src="https://github.com/user-attachments/assets/2d5ebc93-fa74-492d-92a7-3a1b3af4754f" /> | <img width="360" alt="after" src="https://github.com/user-attachments/assets/57c15503-d94a-48d7-8c35-7760f1b860e6" />| ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8123-Fix-roundness-of-slot-error-indicator-in-vue-2eb6d73d3650810383a2f5532117c29f) by [Unito](https://www.unito.io)
This commit is contained in:
@@ -23,7 +23,8 @@
|
||||
:class="
|
||||
cn(
|
||||
'-translate-x-1/2 w-3',
|
||||
hasSlotError && 'ring-2 ring-error ring-offset-0 rounded-full'
|
||||
hasSlotError &&
|
||||
'before:ring-2 before:ring-error before:ring-offset-0 before:size-4 before:absolute before:rounded-full before:pointer-events-none'
|
||||
)
|
||||
"
|
||||
:slot-data
|
||||
|
||||
Reference in New Issue
Block a user