LCOV - code coverage report
Current view: top level - src/components/sidebar/tabs - SidebarTabTemplate.vue Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 1 1
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : <template>
       2         2355 :   <div
       3              :     :class="
       4              :       cn(
       5              :         'comfy-vue-side-bar-container group/sidebar-tab flex size-full flex-col',
       6              :         className
       7              :       )
       8              :     "
       9              :   >
      10              :     <div class="comfy-vue-side-bar-header flex flex-col">
      11              :       <div class="flex min-h-16 items-center justify-between border-b px-4">
      12              :         <div class="flex min-w-0 flex-1 items-center overflow-hidden">
      13              :           <span class="truncate font-bold" :title="title">
      14              :             {{ title }}
      15              :           </span>
      16              :           <slot name="alt-title" />
      17              :         </div>
      18              :         <div class="flex items-center gap-2">
      19              :           <div
      20              :             class="flex gap-2 overflow-hidden transition-all duration-200 has-aria-expanded:w-auto has-aria-expanded:opacity-100 motion-safe:w-0 motion-safe:opacity-0 motion-safe:group-focus-within/sidebar-tab:w-auto motion-safe:group-focus-within/sidebar-tab:opacity-100 motion-safe:group-hover/sidebar-tab:w-auto motion-safe:group-hover/sidebar-tab:opacity-100 touch:w-auto touch:opacity-100"
      21              :           >
      22              :             <slot name="tool-buttons" />
      23              :           </div>
      24              :           <SidebarTabCloseButton v-if="closable" />
      25              :         </div>
      26              :       </div>
      27              :       <slot name="header" />
      28              :     </div>
      29              :     <div
      30              :       class="comfy-vue-side-bar-body scrollbar-custom h-0 grow overflow-x-hidden"
      31              :     >
      32              :       <slot name="body" />
      33              :     </div>
      34              :     <slot name="footer" />
      35              :   </div>
      36              : </template>
      37              : 
      38              : <script setup lang="ts">
      39              : import { cn } from '@comfyorg/tailwind-utils'
      40              : 
      41              : import SidebarTabCloseButton from '@/components/sidebar/tabs/SidebarTabCloseButton.vue'
      42              : 
      43              : const {
      44              :   title,
      45              :   class: className,
      46              :   closable = true
      47              : } = defineProps<{
      48              :   title: string
      49              :   class?: string
      50              :   closable?: boolean
      51              : }>()
      52              : </script>
        

Generated by: LCOV version 2.0-1