Files
speckle-server/packages/frontend-2/components/viewer/layout/Panel.vue
T
andrewwallacespeckle 84a485d293 FE2 - Visual improvements from pairing with Agi (#2111)
* Small tweaks from Agi List

* Reset Filters Animation

* Changes to Scene Explorer Filtering

* WIP

* New Versions Icon

* Add SunLightShadows

* Small changes pre CR

* Remove unneeded prosp
2024-03-12 12:41:28 +00:00

55 lines
1.5 KiB
Vue

<template>
<div class="bg-foundation rounded-lg overflow-hidden shadow flex flex-col">
<div class="sticky top-0 z-50 flex flex-col bg-foundation">
<div
v-if="!hideClose"
class="absolute top-1.5 sm:top-2 right-0.5 sm:right-0 z-10"
>
<FormButton size="sm" color="secondary" text @click="$emit('close')">
<XMarkIcon class="h-4 w-4 sm:h-3 sm:w-3 text-primary sm:text-foreground" />
</FormButton>
</div>
<div
v-if="$slots.title"
class="flex items-center py-2 px-3 border-b border-outline-3 dark:border-foundation-2 bg-foundation"
>
<div
class="flex items-center h-full w-full pr-8 font-semibold sm:font-bold text-sm text-primary"
>
<span class="truncate">
<slot name="title"></slot>
</span>
</div>
</div>
</div>
<div
v-if="$slots.actions"
class="flex items-center h-8 gap-2 px-2 relative z-10"
:class="
moveActionsToBottom
? 'order-3 border-t border-outline-3 mt-2'
: 'order-2 shadow-md'
"
>
<slot name="actions"></slot>
</div>
<div :class="moveActionsToBottom ? 'order-2' : 'order-3'">
<slot></slot>
</div>
</div>
</template>
<script setup lang="ts">
import { XMarkIcon } from '@heroicons/vue/24/solid'
defineEmits(['close'])
defineProps({
hideClose: {
type: Boolean,
default: false
},
moveActionsToBottom: {
type: Boolean,
default: false
}
})
</script>