fix(booking): make provider label and location link visible on mobile (#27463)
* fix(booking): make provider label and location link visible on mobile * correct order * remove comments --------- Co-authored-by: Sahitya Chandra <sahityajb@gmail.com> Co-authored-by: Dhairyashil <dhairyashil10101010@gmail.com>
This commit is contained in:
co-authored by
Sahitya Chandra
Dhairyashil
parent
466e7f2fa7
commit
60188bc66e
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user