mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-19 20:11:31 +02:00
small fix for video embeds
This commit is contained in:
@@ -6,7 +6,13 @@ import { isVideoURL } from "../../helpers/url";
|
|||||||
export function renderVideoUrl(match: URL) {
|
export function renderVideoUrl(match: URL) {
|
||||||
if (!isVideoURL(match)) return null;
|
if (!isVideoURL(match)) return null;
|
||||||
|
|
||||||
return <video src={match.toString()} controls style={{ maxWidth: "30rem", maxHeight: "20rem", width: "100%" }} />;
|
return (
|
||||||
|
<video
|
||||||
|
src={match.toString()}
|
||||||
|
controls
|
||||||
|
style={{ maxWidth: "30rem", maxHeight: "20rem", width: "100%", position: "relative", zIndex: 1 }}
|
||||||
|
/>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function renderGenericUrl(match: URL) {
|
export function renderGenericUrl(match: URL) {
|
||||||
|
Reference in New Issue
Block a user