Skip to content

Commit

Permalink
Fix alignment and border around small images in a grid with captions (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
SamyPesse authored Mar 26, 2024
1 parent ee7a74f commit a678951
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions e2e/pages.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ const testCases: TestsCase[] = [
name: 'Images',
url: 'blocks/block-images',
run: waitForCookiesDialog,
fullPage: true,
},
{
name: 'Inline Images',
Expand Down
3 changes: 2 additions & 1 deletion src/components/DocumentView/Caption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export function Caption(
'dark:after:border-light/1',
'dark:after:mix-blend-plus-lighter',
'after:pointer-events-none',
'w-fit',
],
style,
} = props;
Expand All @@ -60,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 a678951

Please sign in to comment.