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:
Simula_r
2025-09-05 18:34:11 -07:00
committed by GitHub
parent a69b241f07
commit 0bc53eb2ad
5 changed files with 4 additions and 4 deletions

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

View File

@@ -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 {

View File

@@ -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>