Refining the speech-to-text conversion structure
This commit is contained in:
@@ -15,6 +15,7 @@ import JalaliDateInput from '@/components/JalaliDateInput.vue';
|
||||
import MoneyInput from '@/components/MoneyInput.vue';
|
||||
import UiIcon from '@/components/UiIcon.vue';
|
||||
import {
|
||||
UiDropdownMenu,
|
||||
UiPageHeader,
|
||||
UiPagination,
|
||||
UiChart,
|
||||
@@ -649,13 +650,19 @@ onMounted(() => {
|
||||
<button type="button" class="icon-btn sm" title="ویرایش" @click="openEdit(g)">
|
||||
<UiIcon name="pencil" :size="15" />
|
||||
</button>
|
||||
<button type="button" class="icon-btn sm" @click="menuId = menuId === g.id ? null : g.id">
|
||||
<UiIcon name="dots-v" :size="15" />
|
||||
</button>
|
||||
<div v-if="menuId === g.id" class="menu">
|
||||
<UiDropdownMenu
|
||||
:open="menuId === g.id"
|
||||
align="end"
|
||||
@update:open="(v) => (menuId = v ? g.id : null)"
|
||||
>
|
||||
<template #trigger="{ toggle }">
|
||||
<button type="button" class="icon-btn sm" @click.stop="toggle">
|
||||
<UiIcon name="dots-v" :size="15" />
|
||||
</button>
|
||||
</template>
|
||||
<button type="button" @click="openEdit(g)">ویرایش</button>
|
||||
<button type="button" class="danger" @click="removeGoal(g.id)">حذف</button>
|
||||
</div>
|
||||
</UiDropdownMenu>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -672,13 +679,19 @@ onMounted(() => {
|
||||
</button>
|
||||
</div>
|
||||
<article v-for="g in filteredGoals" :key="g.id" class="goal-card" @click.stop>
|
||||
<button type="button" class="dots" @click="menuId = menuId === g.id ? null : g.id">
|
||||
<UiIcon name="dots-v" :size="16" />
|
||||
</button>
|
||||
<div v-if="menuId === g.id" class="menu left">
|
||||
<UiDropdownMenu
|
||||
:open="menuId === g.id"
|
||||
align="end"
|
||||
@update:open="(v) => (menuId = v ? g.id : null)"
|
||||
>
|
||||
<template #trigger="{ toggle }">
|
||||
<button type="button" class="dots" @click.stop="toggle">
|
||||
<UiIcon name="dots-v" :size="16" />
|
||||
</button>
|
||||
</template>
|
||||
<button type="button" @click="openEdit(g)">ویرایش</button>
|
||||
<button type="button" class="danger" @click="removeGoal(g.id)">حذف</button>
|
||||
</div>
|
||||
</UiDropdownMenu>
|
||||
<div class="goal-body">
|
||||
<div>
|
||||
<strong>{{ g.title }}</strong>
|
||||
@@ -872,18 +885,6 @@ th { background: #f8fafc; color: #64748b; font-weight: 700; white-space: nowrap;
|
||||
display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #64748b;
|
||||
}
|
||||
.icon-btn.sm { width: 30px; height: 30px; }
|
||||
.menu {
|
||||
position: absolute; top: calc(100% + 4px); left: 0; z-index: 20; min-width: 120px;
|
||||
background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); box-shadow: 0 10px 24px rgba(15,23,42,.12);
|
||||
padding: 0.3rem; display: grid;
|
||||
}
|
||||
.menu.left { right: 0; left: auto; }
|
||||
.menu button {
|
||||
border: 0; background: transparent; text-align: right; padding: 0.5rem 0.65rem; border-radius: var(--radius);
|
||||
cursor: pointer; font: inherit;
|
||||
}
|
||||
.menu button:hover { background: var(--teal-soft); color: var(--teal); }
|
||||
.menu button.danger { color: #b91c1c; }
|
||||
|
||||
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; align-items: center; }
|
||||
.pager-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
|
||||
@@ -907,8 +908,11 @@ th { background: #f8fafc; color: #64748b; font-weight: 700; white-space: nowrap;
|
||||
display: grid; place-items: center; cursor: pointer;
|
||||
}
|
||||
.goal-card { padding: 0.9rem; display: grid; gap: 0.65rem; position: relative; }
|
||||
.goal-card :deep(.ui-dd-anchor) {
|
||||
position: absolute; top: 0.6rem; left: 0.5rem;
|
||||
}
|
||||
.goal-card .dots {
|
||||
position: absolute; top: 0.6rem; left: 0.5rem; border: 0; background: transparent; color: #94a3b8; cursor: pointer;
|
||||
border: 0; background: transparent; color: #94a3b8; cursor: pointer;
|
||||
}
|
||||
.goal-body { display: grid; grid-template-columns: 1fr auto; gap: 0.65rem; align-items: center; }
|
||||
.goal-body strong { display: block; }
|
||||
|
||||
Reference in New Issue
Block a user