Revert "fix: Make event type title visible in mobile view (#20670)" (#20695)

This reverts commit bdf3935704.
This commit is contained in:
Benny Joo
2025-04-14 20:25:52 +00:00
committed by GitHub
parent 1934c96353
commit 254a2e310b
2 changed files with 8 additions and 4 deletions
@@ -19,18 +19,22 @@ export function ShellMainAppDir(props: LayoutProps) {
<header
className={classNames(props.large && "py-8", "flex w-full max-w-full items-center truncate")}>
{props.HeadingLeftIcon && <div className="ltr:mr-4">{props.HeadingLeftIcon}</div>}
<div className={classNames("w-full truncate ltr:mr-4 rtl:ml-4", props.headerClassName)}>
<div
className={classNames(
"hidden w-full truncate ltr:mr-4 rtl:ml-4 md:block",
props.headerClassName
)}>
{props.heading && (
<h3
className={classNames(
"font-cal text-emphasis max-w-28 sm:max-w-72 md:max-w-80 truncate text-lg font-semibold tracking-wide sm:text-xl xl:max-w-full",
"font-cal text-emphasis max-w-28 sm:max-w-72 md:max-w-80 inline truncate text-lg font-semibold tracking-wide sm:text-xl md:block xl:max-w-full",
props.smallHeading ? "text-base" : "text-xl"
)}>
{props.heading}
</h3>
)}
{props.subtitle && (
<p className="text-default text-sm" data-testid="subtitle">
<p className="text-default hidden text-sm md:block" data-testid="subtitle">
{props.subtitle}
</p>
)}
+1 -1
View File
@@ -158,7 +158,7 @@ export function ShellMain(props: LayoutProps) {
{props.heading && (
<h3
className={classNames(
"font-cal text-emphasis max-w-28 sm:max-w-72 md:max-w-80 truncate text-lg font-semibold tracking-wide sm:text-xl xl:max-w-full",
"font-cal text-emphasis max-w-28 sm:max-w-72 md:max-w-80 hidden truncate text-lg font-semibold tracking-wide sm:text-xl md:block xl:max-w-full",
props.smallHeading ? "text-base" : "text-xl"
)}>
{!isLocaleReady ? <SkeletonText invisible /> : props.heading}