From 5cd2ce9246219037b6701bc2dcfbd1c14c7af2de Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Fri, 9 Sep 2022 17:02:31 +0200 Subject: [PATCH] a ton of mobile improvements to save space (#4336) * made /booking more responsive friendly * hiding headline and description on mobile, moving CTA to bottom right fixed on mobile * more padding on full screen mode on iPhone * nit fixes to wipemycal * nit fixes to wipemycal * lint fix * Update apps/web/styles/globals.css Massive nit, lol. Co-authored-by: Alex van Andel --- .../components/booking/BookingListItem.tsx | 42 +++++-------- apps/web/components/ui/TableActions.tsx | 2 +- apps/web/pages/more.tsx | 2 +- apps/web/pages/v2/availability/index.tsx | 2 +- apps/web/pages/v2/bookings/[status].tsx | 2 +- apps/web/public/static/locales/en/common.json | 3 +- apps/web/styles/globals.css | 4 ++ .../pages/forms/[...appPages].tsx | 2 +- .../components/confirmDialog.tsx | 5 +- .../components/wipeMyCalActionButton.tsx | 4 +- .../components/v2/WorkflowDetailsPage.tsx | 2 +- packages/ui/v2/core/Badge.tsx | 2 +- packages/ui/v2/core/Shell.tsx | 63 +++++++++++-------- packages/ui/v2/core/layouts/BookingLayout.tsx | 4 +- 14 files changed, 73 insertions(+), 66 deletions(-) diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsx index 3d303dc368..414a97b115 100644 --- a/apps/web/components/booking/BookingListItem.tsx +++ b/apps/web/components/booking/BookingListItem.tsx @@ -13,6 +13,7 @@ import { Dialog, DialogClose, DialogContent, DialogFooter, DialogHeader } from " import { Icon } from "@calcom/ui/Icon"; import { Tooltip } from "@calcom/ui/Tooltip"; import { TextArea } from "@calcom/ui/form/fields"; +import Badge from "@calcom/ui/v2/core/Badge"; import Button from "@calcom/ui/v2/core/Button"; import useMeQuery from "@lib/hooks/useMeQuery"; @@ -261,7 +262,7 @@ function BookingListItem(booking: BookingItemProps) { - +
{startTime}
@@ -304,17 +305,21 @@ function BookingListItem(booking: BookingItemProps) {
-
- {isPending && {t("unconfirmed")}} - {!!booking?.eventType?.price && !booking.paid && ( - Pending payment - )} -
- {startTime}:{" "} - - {dayjs(booking.startTime).format("HH:mm")} - {dayjs(booking.endTime).format("HH:mm")} - -
+ {isPending && ( + + {t("unconfirmed")} + + )} + {!!booking?.eventType?.price && !booking.paid && ( + + {t("pending_payment")} + + )} +
+ {startTime}:{" "} + + {dayjs(booking.startTime).format("HH:mm")} - {dayjs(booking.endTime).format("HH:mm")} +
{booking.eventType?.team && {booking.eventType.team.name}: } {booking.title} - {!!booking?.eventType?.price && !booking.paid && ( - Pending payment - )} - {isPending && {t("unconfirmed")}}
{booking.description && (
) => { - return ( - - {children} - - ); -}; - export default BookingListItem; diff --git a/apps/web/components/ui/TableActions.tsx b/apps/web/components/ui/TableActions.tsx index 9401571eae..12c3d826ce 100644 --- a/apps/web/components/ui/TableActions.tsx +++ b/apps/web/components/ui/TableActions.tsx @@ -38,7 +38,7 @@ const DropdownActions = ({ {!actionTrigger ? ( -
diff --git a/packages/features/ee/workflows/components/v2/WorkflowDetailsPage.tsx b/packages/features/ee/workflows/components/v2/WorkflowDetailsPage.tsx index d5f3546e10..51bae5938d 100644 --- a/packages/features/ee/workflows/components/v2/WorkflowDetailsPage.tsx +++ b/packages/features/ee/workflows/components/v2/WorkflowDetailsPage.tsx @@ -79,7 +79,7 @@ export default function WorkflowDetailsPage(props: Props) { return ( <> -
+
diff --git a/packages/ui/v2/core/Badge.tsx b/packages/ui/v2/core/Badge.tsx index d64eaf53ad..ce27865052 100644 --- a/packages/ui/v2/core/Badge.tsx +++ b/packages/ui/v2/core/Badge.tsx @@ -33,7 +33,7 @@ export const Badge = function Badge(props: BadgeProps) {
{ <>