test if works or revert
This commit is contained in:
@@ -59,29 +59,8 @@ export default function ContentImageCell({ image, maxPromptLength = 100 }: Conte
|
||||
);
|
||||
}
|
||||
|
||||
const prompt = image.prompt || '';
|
||||
const shouldTruncate = prompt.length > maxPromptLength;
|
||||
const displayPrompt = showFullPrompt || !shouldTruncate ? prompt : `${prompt.substring(0, maxPromptLength)}...`;
|
||||
|
||||
return (
|
||||
<div className="space-y-2">
|
||||
{/* Prompt Text */}
|
||||
{prompt && (
|
||||
<div className="text-sm">
|
||||
<p className="text-gray-700 dark:text-gray-300">
|
||||
{displayPrompt}
|
||||
{shouldTruncate && (
|
||||
<button
|
||||
onClick={() => setShowFullPrompt(!showFullPrompt)}
|
||||
className="ml-1 text-brand-500 hover:text-brand-600 text-xs"
|
||||
>
|
||||
{showFullPrompt ? 'Show less' : 'Show more'}
|
||||
</button>
|
||||
)}
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Image Display */}
|
||||
<div className="relative">
|
||||
{image.status === 'pending' && (
|
||||
|
||||
Reference in New Issue
Block a user