Skip to content

Commit

Permalink
Fix wide video bug
Browse files Browse the repository at this point in the history
  • Loading branch information
healeycodes committed Nov 20, 2023
1 parent 9542c6d commit 956af99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default function Post({
createElement(type, props, children) {
if (type === "img") {
if (props.src.match(isVideo)) {
return <video style={{ display: 'block', margin: '0 auto' }}
return <video style={{ display: 'block', margin: '0 auto', maxWidth: '100%' }}
key={props.src}
controls
autoPlay
Expand Down

1 comment on commit 956af99

@vercel
Copy link

@vercel vercel bot commented on 956af99 Nov 20, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.