From 8dcf4ed5e9b6c6a6317468eeb89647d1b6afe884 Mon Sep 17 00:00:00 2001 From: Mahdi Date: Tue, 15 Sep 2026 11:05:29 +0330 Subject: [PATCH] Edit the operations column for automated SMS rules. --- apps/web/src/views/MessageAutomationsView.vue | 75 ++++++++++++++----- 1 file changed, 58 insertions(+), 17 deletions(-) diff --git a/apps/web/src/views/MessageAutomationsView.vue b/apps/web/src/views/MessageAutomationsView.vue index ef1dbf3..226c928 100644 --- a/apps/web/src/views/MessageAutomationsView.vue +++ b/apps/web/src/views/MessageAutomationsView.vue @@ -1057,8 +1057,7 @@ onUnmounted(() => { زمان‌بندی مخاطب کانال - فعال - + عملیات @@ -1071,19 +1070,24 @@ onUnmounted(() => { {{ scheduleLabel(row) }} {{ MESSAGE_AUTOMATION_TARGET_LABELS[row.notifyTarget] }} {{ MESSAGE_AUTOMATION_CHANNEL_LABELS[row.channel] }} - + - + > + + + + @@ -1797,17 +1801,54 @@ textarea { opacity: 0.62; } -.desk-table .preview { - display: block; - margin-top: 0.2rem; - color: #94a3b8; - font-size: 0.75rem; - max-width: 18rem; - overflow: hidden; - text-overflow: ellipsis; +.desk-table .ops { + display: flex; + align-items: center; + gap: 0.3rem; + flex-wrap: nowrap; + width: 1%; white-space: nowrap; } +.icon-btn { + display: grid; + place-items: center; + width: 36px; + height: 36px; + padding: 0; + border: 1px solid #e2e8f0; + border-radius: var(--radius); + background: #fff; + color: #64748b; + cursor: pointer; +} + +.icon-btn:hover { + background: #f8fafc; + color: #0f172a; +} + +.icon-btn.danger { + color: #b91c1c; + border-color: #fecaca; +} + +.icon-btn.danger:hover { + background: #fef2f2; +} + +.icon-btn.status { + border-color: #fecaca; + background: #fef2f2; + color: #dc2626; +} + +.icon-btn.status.on { + border-color: #bbf7d0; + background: #f0fdf4; + color: #16a34a; +} + .mobile-cards { display: grid; gap: 0.75rem;