Revert "lightbox"

This reverts commit 469e07e046.
This commit is contained in:
Desktop
2025-11-13 00:36:08 +05:00
parent 07fd04e9f3
commit 77ec8af4d1
3 changed files with 5 additions and 121 deletions

View File

@@ -20,10 +20,9 @@ export interface ContentImageData {
interface ContentImageCellProps {
image: ContentImageData | null;
maxPromptLength?: number;
onImageClick?: () => void;
}
export default function ContentImageCell({ image, maxPromptLength = 100, onImageClick }: ContentImageCellProps) {
export default function ContentImageCell({ image, maxPromptLength = 100 }: ContentImageCellProps) {
const [showFullPrompt, setShowFullPrompt] = useState(false);
// Check if image_path is a valid local file path (not a URL)
@@ -114,14 +113,7 @@ export default function ContentImageCell({ image, maxPromptLength = 100, onImage
<img
src={getLocalImageUrl(image.image_path)}
alt={prompt || 'Generated image'}
className={`w-full h-24 object-cover rounded border border-gray-300 dark:border-gray-600 ${
onImageClick ? 'cursor-pointer hover:opacity-80 transition-opacity' : ''
}`}
onClick={() => {
if (onImageClick) {
onImageClick();
}
}}
className="w-full h-24 object-cover rounded border border-gray-300 dark:border-gray-600"
onError={(e) => {
// Show empty placeholder if local image fails to load
const target = e.target as HTMLImageElement;