Also fix activity leave-without-save confirm, kanban due-date labels with tone-colored peek chevron, and rename the types manager button. Co-authored-by: Cursor <cursoragent@cursor.com>
680 lines
18 KiB
Vue
680 lines
18 KiB
Vue
<script setup lang="ts">
|
||
import { computed, inject, reactive, ref, watch } from 'vue';
|
||
import { RouterLink } from 'vue-router';
|
||
import type {
|
||
ActivityPriority,
|
||
RoutineTaskDetailDto,
|
||
RoutineTaskDto,
|
||
RoutineTaskEventDto,
|
||
UpdateRoutineTaskRequest,
|
||
} from '@mento/shared';
|
||
import UiIcon from '@/components/UiIcon.vue';
|
||
import UserAvatar from '@/components/UserAvatar.vue';
|
||
import JalaliDateInput from '@/components/JalaliDateInput.vue';
|
||
import RoutineTaskModals from '@/components/routines/RoutineTaskModals.vue';
|
||
import {
|
||
UiBadge,
|
||
UiButton,
|
||
UiDrawer,
|
||
UiField,
|
||
UiInput,
|
||
UiSelect,
|
||
UiTextarea,
|
||
} from '@/components/ui';
|
||
import { api } from '@/lib/api';
|
||
import { canAssignToOthers } from '@/lib/assign-access';
|
||
import { useAuthStore } from '@/stores/auth';
|
||
import { formatJalaliDayClock } from '@/lib/jalali';
|
||
import { useActivityPriorities } from '@/lib/activity-priorities';
|
||
import {
|
||
ENTITY_TYPE_LABELS,
|
||
PRIORITY_VARIANTS,
|
||
ROUTINES_CTX,
|
||
ROUTINE_ENTITY_LINK_LABELS,
|
||
ROUTINE_TASK_SOURCE_LABELS,
|
||
ROUTINE_TASK_STATUS_LABELS,
|
||
STATUS_VARIANTS,
|
||
apiError,
|
||
entityRoute,
|
||
formatDayLong,
|
||
formatDelay,
|
||
formatTime,
|
||
hasExplicitTime,
|
||
isOpenStatus,
|
||
isoToLocalInput,
|
||
localInputToIso,
|
||
} from '@/lib/routines';
|
||
import { useRoutineTaskActions } from '@/lib/useRoutineTaskActions';
|
||
|
||
const props = defineProps<{ taskId: string | null }>();
|
||
const emit = defineEmits<{ close: []; changed: [task: RoutineTaskDto] }>();
|
||
|
||
const shell = inject(ROUTINES_CTX, null);
|
||
|
||
const task = ref<RoutineTaskDetailDto | null>(null);
|
||
const loading = ref(false);
|
||
const loadError = ref('');
|
||
const editing = ref(false);
|
||
const saving = ref(false);
|
||
const editError = ref('');
|
||
const edit = reactive({
|
||
title: '',
|
||
description: '',
|
||
priority: 'medium' as ActivityPriority,
|
||
categoryId: '',
|
||
assigneeId: '',
|
||
date: '',
|
||
time: '',
|
||
});
|
||
|
||
async function load() {
|
||
if (!props.taskId) return;
|
||
loading.value = true;
|
||
loadError.value = '';
|
||
try {
|
||
const { data } = await api.get<RoutineTaskDetailDto>(`/routine-tasks/${props.taskId}`);
|
||
task.value = data;
|
||
} catch (e) {
|
||
loadError.value = apiError(e, 'کار پیدا نشد.');
|
||
task.value = null;
|
||
} finally {
|
||
loading.value = false;
|
||
}
|
||
}
|
||
|
||
watch(
|
||
() => props.taskId,
|
||
(id) => {
|
||
editing.value = false;
|
||
if (id) void load();
|
||
else task.value = null;
|
||
},
|
||
{ immediate: true },
|
||
);
|
||
|
||
const actions = useRoutineTaskActions((updated) => {
|
||
emit('changed', updated);
|
||
shell?.notifyChanged();
|
||
void load();
|
||
});
|
||
|
||
const isOpen = computed(() => (task.value ? isOpenStatus(task.value.status) : false));
|
||
const customerTask = computed(() => {
|
||
const t = task.value;
|
||
if (!t) return false;
|
||
return (t.source !== 'routine' && t.source !== 'manual') || t.entities.length > 0;
|
||
});
|
||
const done = computed(() => task.value?.status === 'completed');
|
||
const auth = useAuthStore();
|
||
const canManage = computed(() => !!shell?.context.value?.isManager);
|
||
const canAssignOthers = computed(() => canAssignToOthers(auth.user, 'routines'));
|
||
const activityPriorities = useActivityPriorities();
|
||
void activityPriorities.load();
|
||
const priorities = computed(() =>
|
||
activityPriorities.items.value.map((r) => [r.key, r.label] as [ActivityPriority, string]),
|
||
);
|
||
|
||
function startEdit() {
|
||
const t = task.value;
|
||
if (!t) return;
|
||
const due = isoToLocalInput(t.dueAt);
|
||
Object.assign(edit, {
|
||
title: t.title,
|
||
description: t.description ?? '',
|
||
priority: t.priority,
|
||
categoryId: t.category?.id ?? '',
|
||
assigneeId: t.assignee?.id ?? '',
|
||
date: due.date || t.scheduledFor,
|
||
time: due.time === '23:59' ? '' : due.time,
|
||
});
|
||
editError.value = '';
|
||
editing.value = true;
|
||
}
|
||
|
||
async function saveEdit() {
|
||
const t = task.value;
|
||
if (!t) return;
|
||
if (edit.title.trim().length < 2) {
|
||
editError.value = 'عنوان را وارد کنید.';
|
||
return;
|
||
}
|
||
const body: UpdateRoutineTaskRequest = {
|
||
title: edit.title.trim(),
|
||
description: edit.description.trim() || null,
|
||
priority: edit.priority,
|
||
categoryId: edit.categoryId || null,
|
||
};
|
||
if (!t.routineId) {
|
||
const dueAt = localInputToIso(edit.date, edit.time);
|
||
if (dueAt && dueAt !== t.dueAt) body.dueAt = dueAt;
|
||
}
|
||
if (canManage.value && edit.assigneeId && edit.assigneeId !== t.assignee?.id) {
|
||
body.assigneeId = edit.assigneeId;
|
||
}
|
||
saving.value = true;
|
||
editError.value = '';
|
||
try {
|
||
const { data } = await api.patch<RoutineTaskDto>(`/routine-tasks/${t.id}`, body);
|
||
emit('changed', data);
|
||
shell?.notifyChanged();
|
||
editing.value = false;
|
||
await load();
|
||
} catch (e) {
|
||
editError.value = apiError(e, 'ذخیره ممکن نشد.');
|
||
} finally {
|
||
saving.value = false;
|
||
}
|
||
}
|
||
|
||
function eventText(ev: RoutineTaskEventDto): string {
|
||
switch (ev.type) {
|
||
case 'created':
|
||
return 'کار ایجاد شد';
|
||
case 'status_changed':
|
||
return ev.toStatus
|
||
? `وضعیت ${ev.fromStatus ? `از «${ROUTINE_TASK_STATUS_LABELS[ev.fromStatus]}» ` : ''}به «${ROUTINE_TASK_STATUS_LABELS[ev.toStatus]}» تغییر کرد`
|
||
: 'وضعیت تغییر کرد';
|
||
case 'rescheduled':
|
||
return 'زمان کار تغییر کرد';
|
||
case 'reassigned':
|
||
return 'مسئول کار تغییر کرد';
|
||
case 'note':
|
||
return 'گزارش نتیجه ثبت شد';
|
||
default:
|
||
return 'کار ویرایش شد';
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<template>
|
||
<UiDrawer :open="!!taskId" title="جزئیات کار" width="460px" @close="emit('close')">
|
||
<div v-if="loading && !task" class="state">در حال بارگذاری…</div>
|
||
<div v-else-if="loadError" class="state error">{{ loadError }}</div>
|
||
|
||
<div v-else-if="task" class="td">
|
||
<!-- عنوان و وضعیت -->
|
||
<section class="td-head">
|
||
<div class="badges">
|
||
<UiBadge :variant="STATUS_VARIANTS[task.status]">{{ ROUTINE_TASK_STATUS_LABELS[task.status] }}</UiBadge>
|
||
<UiBadge :variant="PRIORITY_VARIANTS[task.priority]" size="sm">
|
||
اولویت {{ activityPriorities.labelOf(task.priority) }}
|
||
</UiBadge>
|
||
<UiBadge v-if="task.isMandatory" variant="warning" size="sm">اجباری</UiBadge>
|
||
</div>
|
||
<h3 class="td-title" :class="{ done }">{{ task.title }}</h3>
|
||
<p v-if="task.description" class="td-desc">{{ task.description }}</p>
|
||
<p v-if="customerTask" class="note">
|
||
این کار مربوط به پرونده است و در برنامه روزانه کارهای روتین نیست.
|
||
</p>
|
||
</section>
|
||
|
||
<!-- اکشن اصلی -->
|
||
<section v-if="!editing && !customerTask" class="td-actions">
|
||
<UiButton
|
||
v-if="isOpen"
|
||
variant="success"
|
||
block
|
||
size="lg"
|
||
:loading="actions.busyId.value === task.id"
|
||
@click="actions.toggle(task)"
|
||
>
|
||
<template #icon><UiIcon name="check-plain" :size="18" /></template>
|
||
انجام شد
|
||
</UiButton>
|
||
<UiButton
|
||
v-else-if="task.status !== 'cancelled' || canManage"
|
||
variant="outline"
|
||
block
|
||
:loading="actions.busyId.value === task.id"
|
||
@click="actions.toggle(task)"
|
||
>
|
||
<template #icon><UiIcon name="refresh" :size="16" /></template>
|
||
برگرداندن به انجامنشده
|
||
</UiButton>
|
||
<div class="td-actions-row">
|
||
<UiButton v-if="task.status === 'todo'" variant="ghost" size="sm" @click="actions.start(task)">
|
||
شروع کار
|
||
</UiButton>
|
||
<UiButton v-if="isOpen || done" variant="ghost" size="sm" @click="actions.openComplete(task)">
|
||
{{ done ? 'ویرایش گزارش' : 'انجام با گزارش' }}
|
||
</UiButton>
|
||
<UiButton v-if="isOpen" variant="ghost" size="sm" @click="actions.openReschedule(task)">
|
||
تغییر زمان
|
||
</UiButton>
|
||
<UiButton v-if="task.status === 'overdue'" variant="ghost" size="sm" @click="actions.moveToday(task)">
|
||
انتقال به امروز
|
||
</UiButton>
|
||
<UiButton v-if="isOpen && task.rules.allowSkip" variant="ghost" size="sm" @click="actions.openSkip(task)">
|
||
رد کردن
|
||
</UiButton>
|
||
<UiButton v-if="isOpen" variant="ghost" size="sm" class="danger-text" @click="actions.openCancel(task)">
|
||
لغو
|
||
</UiButton>
|
||
</div>
|
||
<p v-if="actions.error.value" class="error">{{ actions.error.value }}</p>
|
||
</section>
|
||
|
||
<!-- ویرایش -->
|
||
<section v-if="editing" class="td-edit">
|
||
<UiField label="عنوان" required>
|
||
<UiInput v-model="edit.title" :maxlength="200" />
|
||
</UiField>
|
||
<UiField label="توضیحات">
|
||
<UiTextarea v-model="edit.description" :rows="3" />
|
||
</UiField>
|
||
<div class="grid-2">
|
||
<UiField label="اولویت">
|
||
<UiSelect v-model="edit.priority">
|
||
<option v-for="[k, label] in priorities" :key="k" :value="k">{{ label }}</option>
|
||
</UiSelect>
|
||
</UiField>
|
||
<UiField label="دستهبندی">
|
||
<UiSelect v-model="edit.categoryId">
|
||
<option value="">بدون دسته</option>
|
||
<option v-for="c in shell?.context.value?.categories ?? []" :key="c.id" :value="c.id">
|
||
{{ c.name }}
|
||
</option>
|
||
</UiSelect>
|
||
</UiField>
|
||
<template v-if="!task.routineId">
|
||
<UiField label="تاریخ">
|
||
<JalaliDateInput v-model="edit.date" mode="date" :clearable="false" />
|
||
</UiField>
|
||
<UiField label="ساعت">
|
||
<JalaliDateInput v-model="edit.time" mode="time" />
|
||
</UiField>
|
||
</template>
|
||
<UiField v-if="canManage && canAssignOthers" label="مسئول" class="span-2">
|
||
<UiSelect v-model="edit.assigneeId">
|
||
<option v-for="u in shell?.context.value?.users ?? []" :key="u.id" :value="u.id">
|
||
{{ u.fullName }}
|
||
</option>
|
||
</UiSelect>
|
||
</UiField>
|
||
</div>
|
||
<p v-if="editError" class="error">{{ editError }}</p>
|
||
<div class="td-edit-actions">
|
||
<UiButton :loading="saving" @click="saveEdit">ذخیره</UiButton>
|
||
<UiButton variant="ghost" @click="editing = false">انصراف</UiButton>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- مشخصات -->
|
||
<section class="td-info">
|
||
<div class="info-row">
|
||
<span>مسئول</span>
|
||
<strong v-if="task.assignee" class="with-avatar">
|
||
<UserAvatar :name="task.assignee.fullName" :user-id="task.assignee.id" :size="22" />
|
||
{{ task.assignee.fullName }}
|
||
</strong>
|
||
<strong v-else>—</strong>
|
||
</div>
|
||
<div class="info-row">
|
||
<span>روز برنامه</span>
|
||
<strong>{{ formatDayLong(task.scheduledFor) }}</strong>
|
||
</div>
|
||
<div class="info-row">
|
||
<span>مهلت</span>
|
||
<strong>
|
||
{{ hasExplicitTime(task) ? `ساعت ${formatTime(task.dueAt)}` : 'تا پایان روز' }}
|
||
<em v-if="task.status === 'overdue'" class="late">({{ formatDelay(task.dueAt) }} تأخیر)</em>
|
||
</strong>
|
||
</div>
|
||
<div v-if="task.completedAt" class="info-row">
|
||
<span>زمان انجام</span>
|
||
<strong class="ok">{{ formatJalaliDayClock(new Date(task.completedAt)) }}</strong>
|
||
</div>
|
||
<div v-if="task.category" class="info-row">
|
||
<span>دستهبندی</span>
|
||
<strong class="cat"><i :style="{ background: task.category.color }" />{{ task.category.name }}</strong>
|
||
</div>
|
||
<div class="info-row">
|
||
<span>منبع</span>
|
||
<strong>{{ ROUTINE_TASK_SOURCE_LABELS[task.source] }}</strong>
|
||
</div>
|
||
<div v-if="task.createdBy" class="info-row">
|
||
<span>ثبتکننده</span>
|
||
<strong>{{ task.createdBy.fullName }}</strong>
|
||
</div>
|
||
</section>
|
||
|
||
<section v-if="task.entities.length" class="td-block">
|
||
<h4>پروندههای مرتبط</h4>
|
||
<div class="ents">
|
||
<RouterLink v-for="ent in task.entities" :key="`${ent.type}-${ent.id}`" :to="entityRoute(ent)" class="ent">
|
||
<span>{{ ENTITY_TYPE_LABELS[ent.type] }}</span>
|
||
<strong>{{ ent.label }}</strong>
|
||
<UiIcon name="chevron-left" :size="14" />
|
||
</RouterLink>
|
||
</div>
|
||
</section>
|
||
|
||
<section v-if="task.resultNote || task.skipReason" class="td-block">
|
||
<h4>{{ task.resultNote ? 'گزارش نتیجه' : 'دلیل رد شدن' }}</h4>
|
||
<p class="note">{{ task.resultNote || task.skipReason }}</p>
|
||
</section>
|
||
|
||
<section v-if="task.routineId" class="td-block">
|
||
<h4>قوانین این روتین</h4>
|
||
<div class="rules">
|
||
<span :class="{ on: task.rules.allowSkip }">{{ task.rules.allowSkip ? 'رد کردن مجاز' : 'رد کردن غیرمجاز' }}</span>
|
||
<span v-if="task.rules.skipReasonRequired" class="on">دلیل رد الزامی</span>
|
||
<span v-if="task.rules.reportRequired" class="on">گزارش الزامی</span>
|
||
<span :class="{ on: task.rules.allowAfterDeadline }">
|
||
{{ task.rules.allowAfterDeadline ? 'انجام بعد از مهلت مجاز' : 'انجام بعد از مهلت غیرمجاز' }}
|
||
</span>
|
||
<span v-if="task.rules.entityLink !== 'none'">
|
||
اتصال پرونده: {{ ROUTINE_ENTITY_LINK_LABELS[task.rules.entityLink] }}
|
||
</span>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="td-block">
|
||
<h4>تاریخچه تغییرات</h4>
|
||
<ol class="events">
|
||
<li v-for="ev in task.events" :key="ev.id">
|
||
<span class="dot" :class="ev.toStatus ? `st-${ev.toStatus}` : ''" />
|
||
<div>
|
||
<p>{{ eventText(ev) }}</p>
|
||
<p v-if="ev.note" class="ev-note">{{ ev.note }}</p>
|
||
<small>
|
||
{{ ev.actor?.fullName ?? 'سیستم' }} · {{ formatJalaliDayClock(new Date(ev.createdAt)) }}
|
||
</small>
|
||
</div>
|
||
</li>
|
||
</ol>
|
||
</section>
|
||
</div>
|
||
|
||
<template v-if="task && !editing && !customerTask" #footer>
|
||
<UiButton variant="ghost" size="sm" @click="startEdit">
|
||
<template #icon><UiIcon name="pencil" :size="14" /></template>
|
||
ویرایش
|
||
</UiButton>
|
||
</template>
|
||
</UiDrawer>
|
||
|
||
<RoutineTaskModals :actions="actions" />
|
||
</template>
|
||
|
||
<style scoped>
|
||
.state {
|
||
padding: var(--sp-8) 0;
|
||
text-align: center;
|
||
color: var(--muted);
|
||
}
|
||
|
||
.td {
|
||
display: grid;
|
||
gap: var(--sp-5);
|
||
}
|
||
|
||
.td-head {
|
||
display: grid;
|
||
gap: var(--sp-2);
|
||
}
|
||
|
||
.badges {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
}
|
||
|
||
.td-title {
|
||
margin: 0;
|
||
font-size: var(--fs-lg);
|
||
font-weight: var(--fw-bold);
|
||
color: var(--ink);
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.td-title.done {
|
||
color: var(--muted);
|
||
text-decoration: line-through;
|
||
}
|
||
|
||
.td-desc {
|
||
margin: 0;
|
||
color: var(--ink-secondary);
|
||
font-size: var(--fs-sm);
|
||
line-height: 1.8;
|
||
white-space: pre-wrap;
|
||
}
|
||
|
||
.td-actions {
|
||
display: grid;
|
||
gap: var(--sp-2);
|
||
}
|
||
|
||
.td-actions-row {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
}
|
||
|
||
.danger-text {
|
||
color: var(--danger) !important;
|
||
}
|
||
|
||
.td-edit {
|
||
display: grid;
|
||
gap: var(--sp-3);
|
||
padding: var(--sp-3);
|
||
border: 1px dashed var(--line-strong);
|
||
border-radius: var(--radius);
|
||
}
|
||
|
||
.grid-2 {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
gap: var(--sp-3);
|
||
}
|
||
|
||
.span-2 {
|
||
grid-column: 1 / -1;
|
||
}
|
||
|
||
.td-edit-actions {
|
||
display: flex;
|
||
gap: var(--sp-2);
|
||
}
|
||
|
||
.td-info {
|
||
display: grid;
|
||
border: 1px solid var(--line);
|
||
border-radius: var(--radius);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.info-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: var(--sp-3);
|
||
padding: 10px 12px;
|
||
font-size: var(--fs-sm);
|
||
}
|
||
|
||
.info-row + .info-row {
|
||
border-top: 1px solid var(--line-light);
|
||
}
|
||
|
||
.info-row > span {
|
||
color: var(--muted);
|
||
}
|
||
|
||
.info-row strong {
|
||
color: var(--ink);
|
||
font-weight: var(--fw-medium);
|
||
text-align: left;
|
||
}
|
||
|
||
.with-avatar,
|
||
.cat {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
.cat i {
|
||
width: 9px;
|
||
height: 9px;
|
||
border-radius: 50%;
|
||
}
|
||
|
||
.late {
|
||
color: var(--danger);
|
||
font-style: normal;
|
||
font-size: var(--fs-xs);
|
||
}
|
||
|
||
.ok {
|
||
color: var(--success-deep) !important;
|
||
}
|
||
|
||
.td-block {
|
||
display: grid;
|
||
gap: var(--sp-2);
|
||
}
|
||
|
||
.td-block h4 {
|
||
margin: 0;
|
||
font-size: var(--fs-sm);
|
||
font-weight: var(--fw-semibold);
|
||
color: var(--ink-secondary);
|
||
}
|
||
|
||
.ents {
|
||
display: grid;
|
||
gap: 6px;
|
||
}
|
||
|
||
.ent {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--sp-2);
|
||
padding: 10px 12px;
|
||
border: 1px solid var(--line);
|
||
border-radius: var(--radius);
|
||
color: var(--ink);
|
||
}
|
||
|
||
.ent:hover {
|
||
border-color: var(--accent);
|
||
background: var(--accent-subtle);
|
||
}
|
||
|
||
.ent span {
|
||
font-size: var(--fs-xs);
|
||
color: var(--muted);
|
||
}
|
||
|
||
.ent strong {
|
||
flex: 1 1 auto;
|
||
font-weight: var(--fw-medium);
|
||
}
|
||
|
||
.note {
|
||
margin: 0;
|
||
padding: var(--sp-3);
|
||
border-radius: var(--radius);
|
||
background: var(--surface-subtle);
|
||
font-size: var(--fs-sm);
|
||
line-height: 1.8;
|
||
white-space: pre-wrap;
|
||
}
|
||
|
||
.rules {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
}
|
||
|
||
.rules span {
|
||
padding: 3px 10px;
|
||
border-radius: var(--radius-full);
|
||
background: var(--surface-subtle);
|
||
color: var(--muted);
|
||
font-size: var(--fs-xs);
|
||
}
|
||
|
||
.rules span.on {
|
||
background: var(--accent-subtle);
|
||
color: var(--accent-deep);
|
||
}
|
||
|
||
.events {
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
display: grid;
|
||
gap: var(--sp-3);
|
||
}
|
||
|
||
.events li {
|
||
display: grid;
|
||
grid-template-columns: 12px minmax(0, 1fr);
|
||
gap: var(--sp-2);
|
||
position: relative;
|
||
}
|
||
|
||
.events li:not(:last-child)::after {
|
||
content: '';
|
||
position: absolute;
|
||
inset-inline-start: 5px;
|
||
top: 16px;
|
||
bottom: calc(-1 * var(--sp-3));
|
||
width: 2px;
|
||
background: var(--line-light);
|
||
}
|
||
|
||
.events .dot {
|
||
width: 12px;
|
||
height: 12px;
|
||
margin-top: 4px;
|
||
border-radius: 50%;
|
||
background: var(--line-strong);
|
||
border: 2px solid var(--surface);
|
||
box-shadow: 0 0 0 1px var(--line);
|
||
}
|
||
|
||
.dot.st-completed {
|
||
background: var(--success);
|
||
}
|
||
|
||
.dot.st-overdue {
|
||
background: var(--danger);
|
||
}
|
||
|
||
.dot.st-skipped {
|
||
background: var(--warning);
|
||
}
|
||
|
||
.dot.st-in_progress {
|
||
background: var(--info);
|
||
}
|
||
|
||
.events p {
|
||
margin: 0;
|
||
font-size: var(--fs-sm);
|
||
color: var(--ink);
|
||
}
|
||
|
||
.events .ev-note {
|
||
margin-top: 2px;
|
||
color: var(--ink-secondary);
|
||
font-size: var(--fs-xs);
|
||
}
|
||
|
||
.events small {
|
||
color: var(--muted);
|
||
font-size: var(--fs-xs);
|
||
}
|
||
|
||
@media (max-width: 600px) {
|
||
.grid-2 {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
}
|
||
</style>
|