diff --git a/src/pages/dashboard/components/DashboardQuickActionsBar.vue b/src/pages/dashboard/components/DashboardQuickActionsBar.vue index 2734317..6442b96 100644 --- a/src/pages/dashboard/components/DashboardQuickActionsBar.vue +++ b/src/pages/dashboard/components/DashboardQuickActionsBar.vue @@ -79,7 +79,7 @@ -
+
-
-
-
+
+
+
/گرم - {{ usePrice(master?.price ?? 0, true, 'ریال') }} + {{ usePrice(master?.price ?? 0, true, 'ریال') }} · مثقال - {{ usePrice(master?.pricem ?? 0, true, 'ریال') }} + {{ usePrice(master?.pricem ?? 0, true, 'ریال') }}
-

+

{{ toJalali(master.update_date) }}

-
+
- -
-
+ +
+
-
-
- - - همه سفارشات - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
کدنوعمشتریمقدارمظنه/گرمقیمت مشتریسود اختلاف قیمت/گرمسود کل اختلاف قیمتکارمزد (ریال)وضعیتتاریخ
#{{ order.id }} - - {{ directionLabel(order.direction) }} - - {{ order.customer?.name ?? '—' }}{{ formatGram(order.amount) }}{{ usePrice(order.price_original ?? 0, true, 'ریال') }}{{ usePrice(order.price ?? 0, true, 'ریال') }} - {{ usePrice(order.fee ?? 0, true, 'ریال') }} - - {{ usePrice(order.total_fee ?? 0, true, 'ریال') }} - - {{ usePrice(order.service_charge_price ?? 0, true, 'ریال') }} - - - {{ stsLabel(order) }} - - - {{ order.created_at ? toJalali(order.created_at) : '—' }} -
+
+
+
+ + + همه سفارشات + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
کدنوعمشتریمقدارمظنه/گرمقیمت مشتریسود اختلاف قیمت/گرمسود کل اختلاف قیمتکارمزد (ریال)وضعیتتاریخ
#{{ order.id }} + + {{ directionLabel(order.direction) }} + + {{ order.customer?.name ?? '—' }}{{ formatGram(order.amount) }}{{ usePrice(order.price_original ?? 0, true, 'ریال') }}{{ usePrice(order.price ?? 0, true, 'ریال') }} + {{ usePrice(order.fee ?? 0, true, 'ریال') }} + + {{ usePrice(order.total_fee ?? 0, true, 'ریال') }} + + {{ usePrice(order.service_charge_price ?? 0, true, 'ریال') }} + + + {{ stsLabel(order) }} + + + {{ order.created_at ? toJalali(order.created_at) : '—' }} +
+
@@ -625,6 +627,71 @@ const walletMetricItems = computed(() => [ padding: 1rem; } +.dashboard-hero__row { + display: flex; + flex-direction: column; + gap: 0.75rem; +} + +.dashboard-hero__actions { + width: 100%; +} + +@media (min-width: 1280px) { + .dashboard-hero__row { + flex-direction: row; + align-items: center; + justify-content: space-between; + gap: 1rem; + } + + .dashboard-hero__price { + order: 1; + min-width: 0; + } + + .dashboard-hero__actions { + order: 2; + width: auto; + max-width: min(100%, 42rem); + flex-shrink: 0; + } +} + +@media (min-width: 768px) and (max-width: 1279px) { + /* دسکتاپ باریک: مظنه بالا، دکمه‌ها زیرش در ردیف مرتب — نه قاطی کنار هم */ + .dashboard-hero__row { + flex-direction: column; + align-items: stretch; + gap: 0.875rem; + } + + .dashboard-hero__price { + order: 1; + } + + .dashboard-hero__actions { + order: 2; + width: 100%; + } +} + +/* ارتفاع «آخرین سفارشات» = ارتفاع ستون دو نمودار؛ جدول داخل اسکرول می‌شود */ +@media (min-width: 1024px) { + .dashboard-orders-row { + align-items: stretch; + } + + .dashboard-orders-main { + /* ارتفاع ردیف را ستون کناری تعیین می‌کند */ + min-height: 0; + } + + .dashboard-orders-panel { + max-height: 100%; + } +} + .dashboard-metrics-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));