fix: open the card menu from the three-dot button

Anchor the activity and deal menus to the button so they show beside the card.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-19 11:40:25 +03:30
co-authored by Cursor
parent ada9a1f21f
commit fddf22d7fe
4 changed files with 63 additions and 46 deletions
+21 -17
View File
@@ -152,23 +152,27 @@ const cardStyle = computed(() => ({
</a-typography-text>
</div>
<a-button
v-if="showTrash"
type="text"
danger
aria-label="حذف انتخاب‌شده‌ها"
@click.stop="emit('bulkDelete')"
>
<template #icon><DeleteOutlined /></template>
</a-button>
<a-button
v-else
type="text"
:aria-label="copy.itemMenuAria"
@click.stop="emit('menu', deal.id)"
>
<template #icon><MoreOutlined /></template>
</a-button>
<span :data-card-id="deal.id">
<a-button
v-if="showTrash"
class="menu"
type="text"
danger
aria-label="حذف انتخاب‌شده‌ها"
@click.stop="emit('bulkDelete')"
>
<template #icon><DeleteOutlined /></template>
</a-button>
<a-button
v-else
class="menu"
type="text"
:aria-label="copy.itemMenuAria"
@click.stop="emit('menu', deal.id)"
>
<template #icon><MoreOutlined /></template>
</a-button>
</span>
</a-flex>
<a-flex