fix: event-title-overflow (#24693)
* fix: event-title-overflow * fix: title overflow in multiple components * fix: title overflow in readonly component
This commit is contained in:
1 parent
7f6136004c
commit
959b803d84
4 files changed
+7
-5
No files matched your search
@@ -623,7 +623,7 @@ function BookingListItem(booking: BookingItemProps) {
|
||||
<div
|
||||
title={title}
|
||||
className={classNames(
|
||||
"max-w-10/12 sm:max-w-56 text-emphasis text-sm font-medium leading-6 md:max-w-full",
|
||||
"max-w-10/12 sm:max-w-56 text-emphasis break-words text-sm font-medium leading-6 md:max-w-full",
|
||||
isCancelled ? "line-through" : ""
|
||||
)}>
|
||||
{title}
|
||||
|
||||
@@ -577,7 +577,7 @@ export default function Success(props: PageProps) {
|
||||
</>
|
||||
)}
|
||||
<div className="font-medium">{t("what")}</div>
|
||||
<div className="col-span-2 mb-6 last:mb-0" data-testid="booking-title">
|
||||
<div className="col-span-2 mb-6 break-words last:mb-0" data-testid="booking-title">
|
||||
{isRoundRobin ? bookingInfo.title : eventName}
|
||||
</div>
|
||||
<div className="font-medium">{t("when")}</div>
|
||||
|
||||
@@ -178,7 +178,7 @@ const Item = ({
|
||||
const content = () => (
|
||||
<div>
|
||||
<span
|
||||
className="text-default font-semibold ltr:mr-1 rtl:ml-1"
|
||||
className="text-default break-words font-semibold ltr:mr-1 rtl:ml-1"
|
||||
data-testid={`event-type-title-${type.id}`}>
|
||||
{type.title}
|
||||
</span>
|
||||
@@ -212,7 +212,7 @@ const Item = ({
|
||||
<Link href={`/event-types/${type.id}?tabName=setup`} title={type.title}>
|
||||
<div>
|
||||
<span
|
||||
className="text-default font-semibold ltr:mr-1 rtl:ml-1"
|
||||
className="text-default break-words font-semibold ltr:mr-1 rtl:ml-1"
|
||||
data-testid={`event-type-title-${type.id}`}>
|
||||
{type.title}
|
||||
</span>
|
||||
|
||||
@@ -12,7 +12,9 @@ interface EventTitleProps {
|
||||
export const EventTitle = ({ children, as, className }: EventTitleProps) => {
|
||||
const El = as || "h1";
|
||||
return (
|
||||
<El data-testid="event-title" className={classNames("text-text text-xl font-semibold", className)}>
|
||||
<El
|
||||
data-testid="event-title"
|
||||
className={classNames("text-text break-words text-xl font-semibold", className)}>
|
||||
{children}
|
||||
</El>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user