Skip to content

Commit 44291be

Browse files
fix: show rescheduled badge on mobile view in bookings list (calcom#25542)
Co-authored-by: Dhairyashil Shinde <93669429+dhairyashiil@users.noreply.github.com>
1 parent 54440cf commit 44291be

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

apps/web/components/booking/BookingListItem.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ function BookingListItem(booking: BookingItemProps) {
356356
data-today={String(booking.isToday)}
357357
className="hover:bg-cal-muted group w-full">
358358
<div className="flex flex-col sm:flex-row">
359-
<div className="hidden align-top ltr:pl-3 rtl:pr-6 sm:table-cell sm:min-w-48">
359+
<div className="sm:min-w-48 hidden align-top ltr:pl-3 rtl:pr-6 sm:table-cell">
360360
<div className="flex h-full items-center">
361361
{eventTypeColor && (
362362
<div className="h-[70%] w-0.5" style={{ backgroundColor: eventTypeColor }} />
@@ -445,6 +445,13 @@ function BookingListItem(booking: BookingItemProps) {
445445
{t("pending_payment")}
446446
</Badge>
447447
)}
448+
{isRescheduled && (
449+
<Tooltip content={`${t("rescheduled_by")} ${booking.rescheduler}`}>
450+
<Badge variant="orange" className="ltr:mr-2 rtl:ml-2 sm:hidden">
451+
{t("rescheduled")}
452+
</Badge>
453+
</Tooltip>
454+
)}
448455
{recurringDates !== undefined && (
449456
<div className="text-muted text-sm sm:hidden">
450457
<RecurringBookingsTooltip
@@ -497,7 +504,7 @@ function BookingListItem(booking: BookingItemProps) {
497504
</div>
498505
</ConditionalLink>
499506
</div>
500-
<div className="flex w-full flex-col flex-wrap items-end justify-end space-x-2 stack-y-2 py-4 pl-4 text-right text-sm font-medium ltr:pr-4 rtl:pl-4 sm:flex-row sm:flex-nowrap sm:items-start sm:stack-y-0 sm:pl-0">
507+
<div className="stack-y-2 sm:stack-y-0 flex w-full flex-col flex-wrap items-end justify-end space-x-2 py-4 pl-4 text-right text-sm font-medium ltr:pr-4 rtl:pl-4 sm:flex-row sm:flex-nowrap sm:items-start sm:pl-0">
501508
{shouldShowPendingActions(actionContext) && <TableActions actions={pendingActions} />}
502509
<BookingActionsDropdown booking={booking} context="list" />
503510
{shouldShowRecurringCancelAction(actionContext) && <TableActions actions={[cancelEventAction]} />}

0 commit comments

Comments
 (0)