mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 18:22:40 +00:00
refactor: use tailwind pseudo-element variants instead of style block
This commit is contained in:
@@ -29,7 +29,9 @@
|
|||||||
ref="popoverRef"
|
ref="popoverRef"
|
||||||
append-to="body"
|
append-to="body"
|
||||||
:pt="{
|
:pt="{
|
||||||
root: { class: 'no-arrow-popover' },
|
root: {
|
||||||
|
class: 'before:hidden after:hidden [&_.p-popover-arrow]:hidden'
|
||||||
|
},
|
||||||
content: { class: 'p-0 shadow-lg' }
|
content: { class: 'p-0 shadow-lg' }
|
||||||
}"
|
}"
|
||||||
@show="fixPopoverIntoViewport"
|
@show="fixPopoverIntoViewport"
|
||||||
@@ -162,11 +164,3 @@ watch(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
|
||||||
.no-arrow-popover::before,
|
|
||||||
.no-arrow-popover::after,
|
|
||||||
.no-arrow-popover .p-popover-arrow {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user