From bb1da8150f19aaac3cf7c9017ee6a25153d38a09 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Fri, 24 Sep 2021 12:28:57 +0100 Subject: [PATCH] fixed event-type buttons on mobile, added more font-cal classes (#764) --- components/Modal.tsx | 2 +- components/Shell.tsx | 2 +- components/dialog/ConfirmationDialogContent.tsx | 4 +++- components/eventtype/EventTypeDescription.tsx | 4 +++- components/ui/Text/Headline/Headline.tsx | 2 +- pages/event-types/index.tsx | 10 +++++++--- pages/integrations/index.tsx | 6 +++--- 7 files changed, 19 insertions(+), 11 deletions(-) diff --git a/components/Modal.tsx b/components/Modal.tsx index 305f45183f..a04a2c3ee6 100644 --- a/components/Modal.tsx +++ b/components/Modal.tsx @@ -61,7 +61,7 @@ export default function Modal(props: { )}
- + {props.heading}
diff --git a/components/Shell.tsx b/components/Shell.tsx index 4ebc08d7d4..1d44e38eb3 100644 --- a/components/Shell.tsx +++ b/components/Shell.tsx @@ -160,7 +160,7 @@ export default function Shell(props) {
-

{props.heading}

+

{props.heading}

{props.subtitle}

{props.CTA}
diff --git a/components/dialog/ConfirmationDialogContent.tsx b/components/dialog/ConfirmationDialogContent.tsx index 531cad608c..f3a3ef2321 100644 --- a/components/dialog/ConfirmationDialogContent.tsx +++ b/components/dialog/ConfirmationDialogContent.tsx @@ -29,7 +29,9 @@ export default function ConfirmationDialogContent(props: PropsWithChildren )}
- {title} + + {title} + {children}
diff --git a/components/eventtype/EventTypeDescription.tsx b/components/eventtype/EventTypeDescription.tsx index ec4e7887ef..bf31fcd31d 100644 --- a/components/eventtype/EventTypeDescription.tsx +++ b/components/eventtype/EventTypeDescription.tsx @@ -67,7 +67,9 @@ export const EventTypeDescription = ({ eventType, className }: EventTypeDescript className="flex-none inline mr-1.5 mt-0.5 h-4 w-4 text-neutral-400" aria-hidden="true" /> - {eventType.description.substring(0, 100)} + + {eventType.description.substring(0, 100)} + )} diff --git a/components/ui/Text/Headline/Headline.tsx b/components/ui/Text/Headline/Headline.tsx index 8ddbe2f0e2..87b7aca7c5 100644 --- a/components/ui/Text/Headline/Headline.tsx +++ b/components/ui/Text/Headline/Headline.tsx @@ -4,7 +4,7 @@ import React from "react"; import { TextProps } from "../Text"; const Headline: React.FunctionComponent = (props: TextProps) => { - const classes = classnames("text-xl font-bold text-gray-900 dark:text-white", props?.className); + const classes = classnames("font-cal text-xl font-bold text-gray-900 dark:text-white", props?.className); return

{props?.text || props.children}

; }; diff --git a/pages/event-types/index.tsx b/pages/event-types/index.tsx index 6802304e50..b6d0b2148c 100644 --- a/pages/event-types/index.tsx +++ b/pages/event-types/index.tsx @@ -140,8 +140,12 @@ const EventTypesPage = (props: PageProps) => { type.$disabled && "opacity-30 cursor-not-allowed pointer-events-none select-none" )} data-disabled={type.$disabled ? 1 : 0}> -