35 lines
667 B
Vue
35 lines
667 B
Vue
<script setup lang="ts">
|
|||
|
|
import DealCard from './DealCard.vue';
|
||
|
|
import type { PipelineAccent, PipelineDeal } from '@/lib/pipeline-board';
|
||
|
|
|
||
|
|
defineProps<{
|
||
|
|
deal: PipelineDeal;
|
||
|
|
accent: PipelineAccent;
|
||
|
|
x: number;
|
||
|
|
y: number;
|
||
|
|
}>();
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<div
|
||
|
|
class="overlay"
|
||
|
|
:style="{ transform: `translate3d(${x}px, ${y}px, 0)` }"
|
||
|
|
aria-hidden="true"
|
||
|
|
>
|
||
|
|
<DealCard :deal="deal" :accent="accent" dragging />
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<style scoped>
|
||
|
|
.overlay {
|
||
|
|
position: fixed;
|
||
|
|
top: 0;
|
||
|
|
left: 0;
|
||
|
|
z-index: 80;
|
||
|
|
width: min(300px, 86vw);
|
||
|
|
pointer-events: none;
|
||
|
|
filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.16));
|
||
|
|
opacity: 0.97;
|
||
|
|
}
|
||
|
|
</style>
|