From 53811e68f85587fa3b88bb086b53a04418d741b8 Mon Sep 17 00:00:00 2001 From: Hossein Salari Date: Mon, 2 Mar 2026 16:37:04 +0330 Subject: [PATCH] update --- components/tabs/textImagePanel.js | 4 +- components/ui/ResultBox.jsx | 62 +++++++++++++++++++++---------- 2 files changed, 44 insertions(+), 22 deletions(-) diff --git a/components/tabs/textImagePanel.js b/components/tabs/textImagePanel.js index 4d6fa85..4f281de 100644 --- a/components/tabs/textImagePanel.js +++ b/components/tabs/textImagePanel.js @@ -178,8 +178,8 @@ export default function TextImagePanel({ filters }) { type="image" loading={isGeneratingImage} resultData={images} - imgWidth={width} - imgHeight={height} + imgWidth={width || 500} + imgHeight={height || 500} /> ); diff --git a/components/ui/ResultBox.jsx b/components/ui/ResultBox.jsx index bf88f5e..4617a8b 100644 --- a/components/ui/ResultBox.jsx +++ b/components/ui/ResultBox.jsx @@ -29,8 +29,8 @@ function ResultBox({ type = "llm", loading = false, resultData = "", - imgWidth, - imgHeight, + imgWidth = 500, + imgHeight = 500, }) { return ( - + {loading && type === "llm" && ( - - در حال تولید تصویر... - + + + + در حال تولید تصویر... + - - + + + + + )} {type === "image" && !loading && resultData?.[0] && ( - - + - + overflow="hidden" + > + + + )}