mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-18 19:41:48 +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) {
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user