mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
Fix/toolbox node detection (#5361)
* refactor: dont need will change on animations * fix: by disabling parent pointer events and forcing on child element * fix: color picker watch with immediate option * Update test expectations [skip ci] --------- Co-authored-by: Jake Schroeder <jake.schroeder@isophex.com> Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 103 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 104 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 99 KiB After Width: | Height: | Size: 96 KiB |
@@ -2,12 +2,12 @@
|
|||||||
<div
|
<div
|
||||||
ref="toolboxRef"
|
ref="toolboxRef"
|
||||||
style="transform: translate(var(--tb-x), var(--tb-y))"
|
style="transform: translate(var(--tb-x), var(--tb-y))"
|
||||||
class="fixed left-0 top-0 z-40"
|
class="fixed left-0 top-0 z-40 pointer-events-none"
|
||||||
>
|
>
|
||||||
<Transition name="slide-up">
|
<Transition name="slide-up">
|
||||||
<Panel
|
<Panel
|
||||||
v-if="visible"
|
v-if="visible"
|
||||||
class="rounded-lg selection-toolbox"
|
class="rounded-lg selection-toolbox pointer-events-auto"
|
||||||
:pt="{
|
:pt="{
|
||||||
header: 'hidden',
|
header: 'hidden',
|
||||||
content: 'p-0 flex flex-row'
|
content: 'p-0 flex flex-row'
|
||||||
@@ -83,7 +83,6 @@ const extensionToolboxCommands = computed<ComfyCommandImpl[]>(() => {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.selection-toolbox {
|
.selection-toolbox {
|
||||||
transform: translateX(-50%) translateY(-120%);
|
transform: translateX(-50%) translateY(-120%);
|
||||||
will-change: transform, opacity;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes slideUp {
|
@keyframes slideUp {
|
||||||
|
|||||||
@@ -147,7 +147,8 @@ watch(
|
|||||||
showColorPicker.value = false
|
showColorPicker.value = false
|
||||||
selectedColorOption.value = null
|
selectedColorOption.value = null
|
||||||
currentColorOption.value = getItemsColorOption(newSelectedItems)
|
currentColorOption.value = getItemsColorOption(newSelectedItems)
|
||||||
}
|
},
|
||||||
|
{ immediate: true }
|
||||||
)
|
)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user