ui(admin-panel): responsive persons menu, XTable phone cards, full-screen form modal

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
s.esmaeili
2026-10-13 09:08:38 +03:30
co-authored by Cursor
parent 28b0a4be38
commit 0a2466ca0c
15 changed files with 453 additions and 25 deletions
@@ -10,8 +10,8 @@
- the retail screen adds a wallet panel (legacy single/wallet/{id})
-->
<a-spin :spinning="loading">
<a-card :title="title">
<a-descriptions bordered size="small" :column="3">
<a-card :title="title" class="page-card">
<a-descriptions bordered size="small" :column="{ xxl: 3, xl: 3, lg: 3, md: 2, sm: 2, xs: 1 }">
<a-descriptions-item label="نام">{{ customer?.name ?? '-' }}</a-descriptions-item>
<a-descriptions-item label="موبایل">{{ customer?.mobile ?? '-' }}</a-descriptions-item>
<a-descriptions-item label="کد ملی">
@@ -47,7 +47,7 @@
<!-- D27 — link and balance in the accounting software. -->
<CustomerAccountingCard :customer-id="id" />
<a-tabs class="mt-4" :default-active-key="defaultTab">
<a-tabs class="mt-4 detail-tabs" :default-active-key="defaultTab">
<a-tab-pane key="orders" tab="سفارش ها">
<a-table
size="small"
@@ -208,9 +208,28 @@ onMounted(async () => {
<style scoped>
.stats {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.mt-4 {
margin-top: 1rem;
}
@media (max-width: 575px) {
.mt-4 {
margin-top: 12px;
}
.stats :deep(.ant-tag) {
margin: 0;
}
.detail-tabs :deep(.ant-tabs-nav) {
margin-bottom: 8px;
}
.detail-tabs :deep(.ant-table-content) {
overflow-x: auto;
}
.detail-tabs :deep(.ant-table-content > table) {
min-width: max-content;
}
}
</style>