Skip to content

Commit

Permalink
fix: markdown video align center
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Jan 19, 2024
1 parent 83d85ab commit ea25d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ui/markdown/renderers/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const MarkdownImage = (props: any) => {
if (isVideoExt(ext)) {
const figcaption = alt?.replace(/^[¡!]/, '')
return (
<div>
<div className="flex flex-col items-center">
<video src={src} controls playsInline autoPlay={false} />
{figcaption && (
<p className="mt-1 flex flex-col items-center justify-center text-sm">
Expand Down

1 comment on commit ea25d83

@vercel
Copy link

@vercel vercel bot commented on ea25d83 Jan 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

shiro-git-main-innei.vercel.app
shiro-innei.vercel.app
springtide.vercel.app
innei.in

Please sign in to comment.