From 09ab8c54b61f5a50fa372204c205bb36e02ca512 Mon Sep 17 00:00:00 2001 From: an-lee Date: Tue, 10 Dec 2024 12:02:10 +0800 Subject: [PATCH] fix sheet portal (#1237) --- .../medias/media-bottom-panel/media-current-recording.tsx | 1 + .../renderer/components/messages/assistant-message.tsx | 1 + enjoy/src/renderer/components/ui/alert-dialog.tsx | 8 ++++++-- enjoy/src/renderer/components/ui/dialog.tsx | 8 ++++++-- enjoy/src/renderer/components/ui/sheet.tsx | 8 ++++++-- enjoy/src/renderer/context/chat-session-provider.tsx | 2 ++ enjoy/src/renderer/context/course-provider.tsx | 1 + 7 files changed, 23 insertions(+), 6 deletions(-) diff --git a/enjoy/src/renderer/components/medias/media-bottom-panel/media-current-recording.tsx b/enjoy/src/renderer/components/medias/media-bottom-panel/media-current-recording.tsx index 6c4928de..49d68dd2 100644 --- a/enjoy/src/renderer/components/medias/media-bottom-panel/media-current-recording.tsx +++ b/enjoy/src/renderer/components/medias/media-bottom-panel/media-current-recording.tsx @@ -692,6 +692,7 @@ export const MediaCurrentRecording = () => { setDetailIsOpen(open)}> setShadowing(value)} > , React.ComponentPropsWithoutRef & { - container?: HTMLElement; + container?: HTMLElement | string; } >(({ className, container, ...props }, ref) => ( , React.ComponentPropsWithoutRef & { - container?: HTMLElement; + container?: HTMLElement | string; } >(({ className, children, container, ...props }, ref) => ( , VariantProps { displayClose?: boolean; - container?: HTMLElement; + container?: HTMLElement | string; } const SheetContent = React.forwardRef< @@ -72,7 +72,11 @@ const SheetContent = React.forwardRef< ref ) => (