feat: remove embed center
This commit is contained in:
parent
b62f1c1c3d
commit
f758d5ff90
|
|
@ -19,13 +19,11 @@ export default function Tweet({
|
|||
fullUrl: string
|
||||
}) {
|
||||
return (
|
||||
<div className="flex justify-center">
|
||||
<ReactTweet
|
||||
id={id}
|
||||
components={components}
|
||||
apiUrl={`${SITE_URL}/api/tweet?id=${id}`}
|
||||
fallback={<>{fullUrl}</>}
|
||||
/>
|
||||
</div>
|
||||
<ReactTweet
|
||||
id={id}
|
||||
components={components}
|
||||
apiUrl={`${SITE_URL}/api/tweet?id=${id}`}
|
||||
fallback={<p>{fullUrl}</p>}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,7 +49,6 @@ export const NetEaseMusicTransformer: Transformer = {
|
|||
name: "netease",
|
||||
src: iframe.src,
|
||||
height: iframe.height + "px",
|
||||
width: "330px",
|
||||
allow:
|
||||
"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",
|
||||
})
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ export const generateIframeHTML = ({
|
|||
})
|
||||
.join(" ")
|
||||
|
||||
return `<div class="xlog-post-content-${name} relative my-4 mx-auto" style="${
|
||||
return `<div class="xlog-post-content-${name} relative my-4" style="${
|
||||
ratio ? `aspect-ratio: ${ratio};` : `width: ${width}; height: ${height};`
|
||||
}">
|
||||
<iframe class="absolute left-0 top-0 w-full h-full" src="${src}" border="0" ${iframeAttributes}></iframe>
|
||||
|
|
|
|||
Loading…
Reference in New Issue