Skip to content

Commit 39d4f4c

Browse files
committed
fixup! ✨(frontend) convert to figure/figcaption structure if caption exists
1 parent baf23d8 commit 39d4f4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/AccessibleImageBlock.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export const accessibleImageRender = (
5858
if (styleAttr) {
5959
figureElement.setAttribute('style', styleAttr);
6060
}
61+
figureElement.style.setProperty('margin', '0');
6162

6263
Array.from(dom.children).forEach((child) => {
6364
figureElement.appendChild(child.cloneNode(true));

0 commit comments

Comments
 (0)