Embed width increase to allow preview to work in desktop mode (#4547)
This commit is contained in:
1 parent
9ae3a0eaba
commit
c6ad2de2f9
3 files changed
+21
-8
No files matched your search
@@ -35,7 +35,7 @@ export function Dialog(props: DialogProps) {
|
||||
{
|
||||
// This is temporary till we are doing rewrites to /v2.
|
||||
// If not done, opening/closing a modalbox can take the user to /v2 paths.
|
||||
pathname: router.asPath.replace("/v2", ""),
|
||||
pathname: router.pathname.replace("/v2", ""),
|
||||
query: {
|
||||
...router.query,
|
||||
},
|
||||
@@ -88,7 +88,7 @@ export const DialogContent = React.forwardRef<HTMLDivElement, DialogContentProps
|
||||
className={classNames(
|
||||
"fadeIn fixed left-1/2 top-1/2 z-[9998] min-w-[360px] -translate-x-1/2 -translate-y-1/2 rounded bg-white text-left shadow-xl focus-visible:outline-none sm:w-full sm:align-middle",
|
||||
props.size == "xl"
|
||||
? "p-0.5 sm:max-w-[98vw]"
|
||||
? "p-8 sm:max-w-[90rem]"
|
||||
: props.size == "lg"
|
||||
? "p-8 sm:max-w-[70rem]"
|
||||
: props.size == "md"
|
||||
|
||||
@@ -4,6 +4,7 @@ import { ComponentProps } from "react";
|
||||
|
||||
import classNames from "@calcom/lib/classNames";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { SVGComponent } from "@calcom/types/SVGComponent";
|
||||
|
||||
import { SkeletonText } from "../../skeleton";
|
||||
|
||||
@@ -13,6 +14,7 @@ export type HorizontalTabItemProps = {
|
||||
className?: string;
|
||||
href: string;
|
||||
linkProps?: Omit<ComponentProps<typeof Link>, "href">;
|
||||
icon?: SVGComponent;
|
||||
};
|
||||
|
||||
const HorizontalTabItem = function ({ name, href, linkProps, ...props }: HorizontalTabItemProps) {
|
||||
@@ -30,6 +32,17 @@ const HorizontalTabItem = function ({ name, href, linkProps, ...props }: Horizon
|
||||
props.className
|
||||
)}
|
||||
aria-current={isCurrent ? "page" : undefined}>
|
||||
{props.icon && (
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
//@ts-ignore
|
||||
<props.icon
|
||||
className={classNames(
|
||||
isCurrent ? "text-neutral-900" : "text-gray-400 group-hover:text-gray-500",
|
||||
"-ml-0.5 hidden h-4 w-4 ltr:mr-2 rtl:ml-2 sm:inline-block"
|
||||
)}
|
||||
aria-hidden="true"
|
||||
/>
|
||||
)}
|
||||
{isLocaleReady ? t(name) : <SkeletonText className="h-4 w-24" />}
|
||||
</a>
|
||||
</Link>
|
||||
|
||||
Reference in new issue
Block a user