Scheduling infrastructure for absolutely everyone.
fix(booking): make provider label and location link visible on mobile (#27463)
Eesh Midha60188bc66e2f
diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsxindex 39a90dfa136..49fa0f03c03 100644--- a/apps/web/components/booking/BookingListItem.tsx+++ b/apps/web/components/booking/BookingListItem.tsx@@ -442,6 +442,36 @@ function BookingListItem(booking: BookingItemProps) {eventTypeHosts={booking.eventType?.hosts}/>)}+ {!isPending && (+ <div className="sm:hidden">+ {(provider?.label ||+ (typeof locationToDisplay === "string" && locationToDisplay?.startsWith("https://"))) &&+ locationToDisplay.startsWith("http") && (+ <a+ href={locationToDisplay}+ onClick={(e) => e.stopPropagation()}+ target="_blank"+ title={locationToDisplay}+ rel="noreferrer"+ className="text-sm leading-6 text-blue-600 hover:underline dark:text-blue-400">+ <div className="flex items-center gap-2">+ {provider?.iconUrl && (+ <img+ src={provider.iconUrl}+ width={16}+ height={16}+ className="h-4 w-4 rounded-sm"+ alt={`${provider?.label} logo`}+ />+ )}+ {provider?.label+ ? t("join_event_location", { eventLocationType: provider?.label })+ : t("join_meeting")}+ </div>+ </a>+ )}+ </div>+ )}{isCancelled && booking.rescheduled && (<div className="mt-2 inline-block md:hidden"><RequestSentMessage />