Skip to content

Commit ea25d83

Browse files
committed
fix: markdown video align center
Signed-off-by: Innei <[email protected]>
1 parent 83d85ab commit ea25d83

File tree

1 file changed

+1
-1
lines changed
  • src/components/ui/markdown/renderers

1 file changed

+1
-1
lines changed

src/components/ui/markdown/renderers/image.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const MarkdownImage = (props: any) => {
2828
if (isVideoExt(ext)) {
2929
const figcaption = alt?.replace(/^[¡!]/, '')
3030
return (
31-
<div>
31+
<div className="flex flex-col items-center">
3232
<video src={src} controls playsInline autoPlay={false} />
3333
{figcaption && (
3434
<p className="mt-1 flex flex-col items-center justify-center text-sm">

0 commit comments

Comments
 (0)