better image rendering

This commit is contained in:
zmeyer44 2023-11-05 18:52:40 -05:00
parent 96ee1dbc2d
commit d5dc195af2

View File

@ -49,7 +49,7 @@ const RenderText = ({ text }: { text?: string }) => {
{cleanUrl(currentValue)} {cleanUrl(currentValue)}
</a> </a>
); );
} else if (subdomain === "i" || subdomain === "image") { } else if (["m", "i", "image", "flockstr"].includes(subdomain)) {
specialElement = <ImageUrl className="my-1" url={currentValue} />; specialElement = <ImageUrl className="my-1" url={currentValue} />;
} else if (["v", "video"].includes(subdomain)) { } else if (["v", "video"].includes(subdomain)) {
specialElement = <VideoUrl className="my-1" url={currentValue} />; specialElement = <VideoUrl className="my-1" url={currentValue} />;