better image rendering
This commit is contained in:
parent
96ee1dbc2d
commit
d5dc195af2
@ -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} />;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user