Files
CRM_Montzar/apps/web/src/components/pipeline/DealCardOverlay.vue
T

40 lines
843 B
Vue
Raw Normal View History

<script setup lang="ts">
import DealCard from './DealCard.vue';
2026-09-15 19:13:30 +03:30
import type { PipelineAccent, PipelineDeal, PipelineUiCopy } from '@/lib/pipeline-board';
import { DEAL_BOARD_COPY } from '@/lib/pipeline-board';
2026-09-15 19:13:30 +03:30
withDefaults(
defineProps<{
deal: PipelineDeal;
accent: PipelineAccent;
x: number;
y: number;
copy?: PipelineUiCopy;
}>(),
{ copy: () => DEAL_BOARD_COPY },
);
</script>
<template>
<div
class="overlay"
:style="{ transform: `translate3d(${x}px, ${y}px, 0)` }"
aria-hidden="true"
>
2026-09-15 19:13:30 +03:30
<DealCard :deal="deal" :accent="accent" :copy="copy" 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>