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 <[email protected]> Co-authored-by: Dhairyashil <[email protected]>
This commit is contained in:
1 file changed
+30
@@ -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