fix: availability page UI (#27825)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
83354fbe18
commit
267686704d
2 files changed
+7
-2
No files matched your search
@@ -96,6 +96,7 @@ export type LayoutProps = {
|
|||||||
smallHeading?: boolean;
|
smallHeading?: boolean;
|
||||||
isPlatformUser?: boolean;
|
isPlatformUser?: boolean;
|
||||||
disableSticky?: boolean;
|
disableSticky?: boolean;
|
||||||
|
topAlignedHeading?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
const KBarWrapper = ({
|
const KBarWrapper = ({
|
||||||
@@ -154,8 +155,9 @@ export function ShellMain(props: LayoutProps) {
|
|||||||
<div
|
<div
|
||||||
style={headerStyle}
|
style={headerStyle}
|
||||||
className={classNames(
|
className={classNames(
|
||||||
"bg-default mb-0 flex items-center md:mb-6 md:mt-0",
|
"bg-default mb-0 flex md:mb-6 md:mt-0",
|
||||||
props.smallHeading ? "lg:mb-7" : "lg:mb-8",
|
props.smallHeading ? "lg:mb-7" : "lg:mb-8",
|
||||||
|
props.topAlignedHeading ? "items-start" : "items-center",
|
||||||
!props.disableSticky &&
|
!props.disableSticky &&
|
||||||
"sticky top-0 z-10 md:fixed md:w-[calc(100%-3.5rem)] md:pt-3 md:pb-2 md:px-5 md:left-14 lg:left-56 lg:w-[calc(100%-14rem)]"
|
"sticky top-0 z-10 md:fixed md:w-[calc(100%-3.5rem)] md:pt-3 md:pb-2 md:px-5 md:left-14 lg:left-56 lg:w-[calc(100%-14rem)]"
|
||||||
)}
|
)}
|
||||||
@@ -180,7 +182,8 @@ export function ShellMain(props: LayoutProps) {
|
|||||||
<header
|
<header
|
||||||
className={classNames(
|
className={classNames(
|
||||||
props.large && "py-8",
|
props.large && "py-8",
|
||||||
"flex w-full max-w-full items-center truncate"
|
"flex w-full max-w-full truncate",
|
||||||
|
props.topAlignedHeading ? "items-start" : "items-center"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{props.HeadingLeftIcon && (
|
{props.HeadingLeftIcon && (
|
||||||
|
|||||||
@@ -405,6 +405,8 @@ export const AvailabilitySettings = forwardRef<AvailabilitySettingsFormRef, Avai
|
|||||||
return (
|
return (
|
||||||
<Shell
|
<Shell
|
||||||
headerClassName={cn(customClassNames?.containerClassName)}
|
headerClassName={cn(customClassNames?.containerClassName)}
|
||||||
|
disableSticky
|
||||||
|
topAlignedHeading
|
||||||
backPath={backPath}
|
backPath={backPath}
|
||||||
title={schedule.name ? `${schedule.name} | ${t("availability")}` : t("availability")}
|
title={schedule.name ? `${schedule.name} | ${t("availability")}` : t("availability")}
|
||||||
heading={
|
heading={
|
||||||
|
|||||||
Reference in new issue
Block a user