[Desktop] Allow dragging window on empty titlebar (#2222)

This commit is contained in:
Chenlei Hu
2025-01-10 13:41:26 -05:00
committed by GitHub
parent 3122c33310
commit 30cd46ce1f
2 changed files with 4 additions and 4 deletions

View File

@@ -9,7 +9,7 @@
<h1 class="comfyui-logo mx-2 app-drag">ComfyUI</h1>
<CommandMenubar />
<Divider layout="vertical" class="mx-2" />
<div class="flex-grow min-w-0">
<div class="flex-grow min-w-0 app-drag h-full">
<WorkflowTabs v-if="workflowTabsPosition === 'Topbar'" />
</div>
<div class="comfyui-menu-right" ref="menuRight"></div>

View File

@@ -1,7 +1,7 @@
<template>
<div class="workflow-tabs-container flex flex-row w-full">
<div class="workflow-tabs-container flex flex-row max-w-full">
<ScrollPanel
class="overflow-hidden"
class="overflow-hidden no-drag"
:pt:content="{
class: 'p-0 w-full',
onwheel: handleWheel
@@ -28,7 +28,7 @@
</ScrollPanel>
<Button
v-tooltip="{ value: $t('sideToolbar.newBlankWorkflow'), showDelay: 300 }"
class="new-blank-workflow-button flex-shrink-0"
class="new-blank-workflow-button flex-shrink-0 no-drag"
icon="pi pi-plus"
text
severity="secondary"