Skip to content

Commit 4964b08

Browse files
committed
Updated DialogContent
1 parent 1439b10 commit 4964b08

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

packages/ui/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ navigating through **subcollections** and accessing custom views (such as custom
8989
forms or blog previews). This functionality can also be accessed
9090
programmatically using the `useSideEntityController` hook.
9191

92-
FireCMS includes **over 15 built-in fields** with numerous customization and
92+
FireCMS includes **over 20 built-in fields** with numerous customization and
9393
validation options. The components have been carefully designed for an
9494
outstanding user experience, including advanced features like **references** to
9595
other collections, **markdown**, and **array reordering**.

packages/ui/src/components/DialogContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function DialogContent({
1717
</div>;
1818

1919
return <div
20-
className={cls("py-6 px-6 h-full flex-grow", className)}>
20+
className={cls("my-6 mx-6 h-full flex-grow", className)}>
2121
{children}
2222
</div>;
2323
}

packages/ui/src/components/DialogTitle.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from "react";
22
import * as DialogPrimitive from "@radix-ui/react-dialog";
33
import * as VisuallyHidden from "@radix-ui/react-visually-hidden";
44
import { Typography, TypographyProps, TypographyVariant } from "./Typography";
5+
import { cls } from "../util";
56

67
export type DialogContentProps = TypographyProps & {
78
children: React.ReactNode,
@@ -14,13 +15,13 @@ export function DialogTitle({
1415
children,
1516
hidden,
1617
className,
17-
variant = "h4",
18+
variant = "subtitle2",
1819
...props
1920
}: DialogContentProps) {
2021

2122
const title = <DialogPrimitive.Title asChild>
2223
<Typography variant={variant}
23-
className={className}
24+
className={cls("mt-8 mb-6 mx-6", className)}
2425
{...props}>
2526
{children}
2627
</Typography>

0 commit comments

Comments
 (0)