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" + > + + + )}