fix(web): mobile automation canvas/inspector, compact activity row, timestamped comments
This commit is contained in:
@@ -345,7 +345,9 @@ function dateText(item: ActivityDto) {
|
||||
}
|
||||
|
||||
function subtitle(item: ActivityDto) {
|
||||
return item.deal?.title || item.description || '';
|
||||
const linked = item.deal?.title || item.lead?.title || item.person?.fullName;
|
||||
if (linked) return linked;
|
||||
return (item.description ?? '').split('\n')[0].trim();
|
||||
}
|
||||
|
||||
async function loadStages() {
|
||||
@@ -1665,6 +1667,9 @@ h1 {
|
||||
.sub {
|
||||
margin: 0.2rem 0 0;
|
||||
font-size: 0.8rem;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.type-cell {
|
||||
|
||||
@@ -6,6 +6,7 @@ import {
|
||||
calendarDaysBetween,
|
||||
formatClockFa,
|
||||
formatJalaliDay,
|
||||
formatJalaliNumeric,
|
||||
} from '@/lib/jalali';
|
||||
import UiIcon from '@/components/UiIcon.vue';
|
||||
import UserAvatar from '@/components/UserAvatar.vue';
|
||||
@@ -222,7 +223,11 @@ async function submitComment(text: string) {
|
||||
error.value = '';
|
||||
try {
|
||||
const prev = activity.value.description?.trim();
|
||||
const next = prev ? `${prev}\n${body}` : body;
|
||||
const now = new Date();
|
||||
const author = auth.user?.fullName?.trim();
|
||||
const stamp = `[${formatJalaliNumeric(now)} ساعت ${formatClockFa(now)}${author ? ` — ${author}` : ''}]`;
|
||||
const entry = `${stamp}\n${body}`;
|
||||
const next = prev ? `${prev}\n\n${entry}` : entry;
|
||||
await api.patch(`/activities/${id.value}`, { description: next });
|
||||
commentOpen.value = false;
|
||||
await load();
|
||||
@@ -787,6 +792,7 @@ dd {
|
||||
color: #334155;
|
||||
line-height: 1.9;
|
||||
font-size: 0.9rem;
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
.note p.empty {
|
||||
|
||||
Reference in New Issue
Block a user