Files
speckle-server/packages/frontend-2/components/viewer/layout/SidePanel.vue
T
2025-09-15 15:35:54 +01:00

38 lines
934 B
Vue

<template>
<div
:class="[
'flex flex-col h-full',
disableScrollbar ? '' : 'overflow-hidden',
maxHeightClass ? maxHeightClass : 'max-h-[calc(100dvh-3rem)]'
]"
>
<div
class="flex shrink-0 justify-between items-center border-b border-outline-3 h-10 pl-4 pr-2.5"
>
<slot name="fullTitle">
<div class="text-body-xs text-foreground font-medium leading-none">
<span v-if="title" class="truncate">{{ title }}</span>
<slot name="title"></slot>
</div>
<slot name="actions"></slot>
</slot>
</div>
<div
:class="[
'flex flex-col flex-1 min-h-0 grow',
disableScrollbar ? '' : 'overflow-y-auto overflow-x-hidden simple-scrollbar'
]"
>
<slot />
</div>
</div>
</template>
<script setup lang="ts">
defineProps<{
title?: string
disableScrollbar?: boolean
maxHeightClass?: string
}>()
</script>