Skip to content

Commit

Permalink
Align images in figure
Browse files Browse the repository at this point in the history
  • Loading branch information
SamyPesse committed Mar 26, 2024
1 parent de25a6a commit 53192fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/DocumentView/Caption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export function Caption(
'dark:after:mix-blend-plus-lighter',
'after:pointer-events-none',
'w-fit',
'mx-auto',
],
style,
} = props;
Expand All @@ -62,7 +61,7 @@ export function Caption(

return (
<picture className={tcls('relative', style)}>
<div className={tcls(wrapperStyle)}>{children}</div>
<div className={tcls(wrapperStyle, 'mx-auto')}>{children}</div>
<figcaption
className={tcls(
'text-sm',
Expand Down

0 comments on commit 53192fd

Please sign in to comment.