Fixed alignment for CTA buttons in PWA. (#5173)
This commit is contained in:
@@ -785,12 +785,12 @@ export function ShellMain(props: LayoutProps) {
|
||||
<header
|
||||
className={classNames(
|
||||
props.large && "py-8",
|
||||
"mb-4 flex w-full items-center pt-4 md:p-0 lg:mb-10"
|
||||
"mb-4 flex w-full items-start pt-4 pb-2 md:p-0 lg:mb-10"
|
||||
)}>
|
||||
{props.HeadingLeftIcon && <div className="ltr:mr-4">{props.HeadingLeftIcon}</div>}
|
||||
<div className="w-full ltr:mr-4 rtl:ml-4 sm:block">
|
||||
{props.heading && (
|
||||
<h1 className="font-cal mb-1 text-xl font-bold tracking-wide text-black">
|
||||
<h1 className="font-cal text-xl font-bold tracking-wide text-black">
|
||||
{!isLocaleReady ? <SkeletonText invisible /> : props.heading}
|
||||
</h1>
|
||||
)}
|
||||
@@ -804,7 +804,7 @@ export function ShellMain(props: LayoutProps) {
|
||||
<div
|
||||
className={classNames(
|
||||
props.backPath ? "relative" : "fixed right-4 bottom-[75px] z-40 ",
|
||||
"cta mb-4 flex-shrink-0 sm:relative sm:bottom-auto sm:right-auto"
|
||||
"flex-shrink-0 sm:relative sm:bottom-auto sm:right-auto"
|
||||
)}>
|
||||
{props.CTA}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user