diff --git a/src/components/Gallery/Gallery.tsx b/src/components/Gallery/Gallery.tsx
index 66560df9bc..c5bd3aa507 100644
--- a/src/components/Gallery/Gallery.tsx
+++ b/src/components/Gallery/Gallery.tsx
@@ -104,7 +104,11 @@ const UnMemoizedGallery = <
return (
{renderImages}
- setModalOpen((modalOpen) => !modalOpen)} open={modalOpen}>
+ setModalOpen((modalOpen) => !modalOpen)}
+ open={modalOpen}
+ >
diff --git a/src/components/Gallery/Image.tsx b/src/components/Gallery/Image.tsx
index a8c4de8cd6..d3d23f7fcd 100644
--- a/src/components/Gallery/Image.tsx
+++ b/src/components/Gallery/Image.tsx
@@ -61,7 +61,7 @@ export const ImageComponent = <
{...dimensions}
{...(innerRef && { ref: innerRef })}
/>
-
+
>
diff --git a/src/components/Message/MessageSimple.tsx b/src/components/Message/MessageSimple.tsx
index cbd8fbbbde..33a909521a 100644
--- a/src/components/Message/MessageSimple.tsx
+++ b/src/components/Message/MessageSimple.tsx
@@ -149,7 +149,7 @@ const MessageSimpleWithContext = <
return (
<>
{editing && (
-
+
+
diff --git a/src/components/Modal/Modal.tsx b/src/components/Modal/Modal.tsx
index aed0789e0d..8b99b225c8 100644
--- a/src/components/Modal/Modal.tsx
+++ b/src/components/Modal/Modal.tsx
@@ -1,3 +1,4 @@
+import clsx from 'clsx';
import React, { PropsWithChildren, useEffect, useRef } from 'react';
import { FocusScope } from '@react-aria/focus';
@@ -8,13 +9,15 @@ import { useChatContext, useTranslationContext } from '../../context';
export type ModalProps = {
/** If true, modal is opened or visible. */
open: boolean;
+ /** Custom class to be applied to the modal root div */
+ className?: string;
/** Callback handler for closing of modal. */
onClose?: (
event: React.KeyboardEvent | React.MouseEvent,
) => void;
};
-export const Modal = ({ children, onClose, open }: PropsWithChildren) => {
+export const Modal = ({ children, className, onClose, open }: PropsWithChildren) => {
const { t } = useTranslationContext('Modal');
const { themeVersion } = useChatContext('Modal');
@@ -42,7 +45,7 @@ export const Modal = ({ children, onClose, open }: PropsWithChildren
if (!open) return null;
return (
-
+