From 3dda9fdc41412c7cb5699b833e0b0e38a78618f5 Mon Sep 17 00:00:00 2001 From: David Totraev Date: Sat, 23 Nov 2024 23:03:50 +0500 Subject: [PATCH] fix: dialog title --- src/components/Dialog/components/DialogHeader.tsx | 6 +++--- src/components/Dialog/index.css | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/Dialog/components/DialogHeader.tsx b/src/components/Dialog/components/DialogHeader.tsx index e597bc6..484b09a 100644 --- a/src/components/Dialog/components/DialogHeader.tsx +++ b/src/components/Dialog/components/DialogHeader.tsx @@ -10,8 +10,8 @@ export interface DialogHeaderProps extends DetailedHTMLProps ( - <> -
+
+
{title} {Boolean(onClose) && ( @@ -27,5 +27,5 @@ export const DialogHeader = ({ className, children, title, onClose }: DialogHead
{children} - +
); diff --git a/src/components/Dialog/index.css b/src/components/Dialog/index.css index bbf5cb1..ccbfeaf 100644 --- a/src/components/Dialog/index.css +++ b/src/components/Dialog/index.css @@ -10,6 +10,10 @@ } &-header { + @apply b-block; + } + + &-title { @apply b-flex b-items-center b-justify-between b-gap-2; }