frohzinn/bcbsma-storage / llama.cpp /tools /ui /src /lib /utils /image-error-fallback.ts
frohzinn's picture
download
raw
388 Bytes
/**
* Simplified HTML fallback for external images that fail to load.
* Displays a centered message with a link to open the image in a new tab.
*/
export function getImageErrorFallbackHtml(src: string): string {
return `<div class="image-error-content">
<span>Image cannot be displayed</span>
<a href="${src}" target="_blank" rel="noopener noreferrer">(open link)</a>
</div>`;
}

Xet Storage Details

Size:
388 Bytes
·
Xet hash:
e7503a1962e3251d27031ccba1c44f2c9a3647c384f94ebc1a9e522505cde240

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.