Skip to content

Commit d8795ec

Browse files
fix: actionbar can get stuck behind floating menu and not be moved with drag handle (#7034)
Fixes issue where actionbar (and therefore "Run" button) can get stuck behind the floating menus and not be physically moved (especially on mobile) leading to an inability to press "Run" button. `z1010` and `z1000` do not seem to be actual classes in our system. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7034-fix-actionbar-can-get-stuck-behind-floating-menu-and-not-be-moved-with-drag-handle-2b96d73d365081fc87d1ec4446a50e43) by [Unito](https://www.unito.io) --------- Co-authored-by: Alexander Brown <[email protected]>
1 parent d3aa8df commit d8795ec

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/components/actionbar/ComfyActionbar.vue

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</div>
1111

1212
<Panel
13-
class="pointer-events-auto z-1010"
13+
class="pointer-events-auto"
1414
:style="style"
1515
:class="panelClass"
1616
:pt="{
@@ -66,12 +66,7 @@ const storedPosition = useLocalStorage('Comfy.MenuPosition.Floating', {
6666
x: 0,
6767
y: 0
6868
})
69-
const {
70-
x,
71-
y,
72-
style: style,
73-
isDragging
74-
} = useDraggable(panelRef, {
69+
const { x, y, style, isDragging } = useDraggable(panelRef, {
7570
initialValue: { x: 0, y: 0 },
7671
handle: dragHandleRef,
7772
containerElement: document.body,
@@ -267,7 +262,7 @@ const actionbarClass = computed(() =>
267262
)
268263
const panelClass = computed(() =>
269264
cn(
270-
'actionbar pointer-events-auto z1000',
265+
'actionbar pointer-events-auto z-1300',
271266
isDragging.value && 'select-none pointer-events-none',
272267
isDocked.value
273268
? 'p-0 static mr-2 border-none bg-transparent'

0 commit comments

Comments
 (0)