mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 09:30:06 +00:00
* output url * Basic image previews * Split out task item component * Move task actions to context menu * simplify * Move spinner * Lift context menu to tab scope * Better tag * Fix placeholder style * nit * Correctly handle cancelled * nit * Split out result item as separate component * nit * Fix center crop * nit * Simplify task item * Flat list * Show prompt id * Make image draggable * Disable preview for dragging * Fix key * Correctly handle task in expanded view * Add preview
67 lines
1.2 KiB
Vue
67 lines
1.2 KiB
Vue
<template>
|
|
<div class="comfy-vue-side-bar-container">
|
|
<Toolbar class="comfy-vue-side-bar-header">
|
|
<template #start>
|
|
<span class="comfy-vue-side-bar-header-span">{{
|
|
props.title.toUpperCase()
|
|
}}</span>
|
|
</template>
|
|
<template #end>
|
|
<slot name="tool-buttons"></slot>
|
|
</template>
|
|
</Toolbar>
|
|
<div class="comfy-vue-side-bar-body">
|
|
<slot name="body"></slot>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import Toolbar from 'primevue/toolbar'
|
|
|
|
const props = defineProps({
|
|
title: {
|
|
type: String,
|
|
required: true
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<style scoped>
|
|
.comfy-vue-side-bar-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.comfy-vue-side-bar-header {
|
|
flex-shrink: 0;
|
|
border-left: none;
|
|
border-right: none;
|
|
border-top: none;
|
|
border-radius: 0;
|
|
padding: 0.25rem 1rem;
|
|
min-height: 2.5rem;
|
|
}
|
|
|
|
.comfy-vue-side-bar-header-span {
|
|
font-size: small;
|
|
}
|
|
|
|
.comfy-vue-side-bar-body {
|
|
flex-grow: 1;
|
|
overflow: auto;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: transparent transparent;
|
|
}
|
|
|
|
.comfy-vue-side-bar-body::-webkit-scrollbar {
|
|
width: 1px;
|
|
}
|
|
|
|
.comfy-vue-side-bar-body::-webkit-scrollbar-thumb {
|
|
background-color: transparent;
|
|
}
|
|
</style>
|