Restore Panel

This commit is contained in:
Benjamin Lu
2025-12-13 17:33:06 -08:00
parent d7d03bed8b
commit 73678e0220

View File

@@ -15,8 +15,22 @@
:style="style" :style="style"
class="flex flex-col items-stretch" class="flex flex-col items-stretch"
> >
<div ref="panelRef" :class="cn(panelRootClass, docked ? 'p-0' : 'p-1')"> <Panel
<div class="flex flex-col"> :class="
cn(
panelRootClass,
isDragging ? 'pointer-events-none' : 'pointer-events-auto'
)
"
:pt="{
header: { class: 'hidden' },
content: { class: 'p-0' }
}"
>
<div
ref="panelRef"
:class="cn('flex flex-col', docked ? 'p-0' : 'p-1')"
>
<div class="flex items-center select-none"> <div class="flex items-center select-none">
<span <span
ref="dragHandleRef" ref="dragHandleRef"
@@ -69,8 +83,7 @@
</IconTextButton> </IconTextButton>
</div> </div>
</div> </div>
</div> </Panel>
<div v-if="isFloating" class="flex justify-end pt-1 pr-1"> <div v-if="isFloating" class="flex justify-end pt-1 pr-1">
<QueueInlineProgressSummary <QueueInlineProgressSummary
class="pr-1" class="pr-1"
@@ -98,6 +111,7 @@ import {
} from '@vueuse/core' } from '@vueuse/core'
import { clamp } from 'es-toolkit/compat' import { clamp } from 'es-toolkit/compat'
import { storeToRefs } from 'pinia' import { storeToRefs } from 'pinia'
import Panel from 'primevue/panel'
import { computed, nextTick, ref, watch } from 'vue' import { computed, nextTick, ref, watch } from 'vue'
import IconButton from '@/components/button/IconButton.vue' import IconButton from '@/components/button/IconButton.vue'