mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: padding in preview
This commit is contained in:
parent
f096841add
commit
8b86ef4c60
2 changed files with 2 additions and 1 deletions
|
@ -113,6 +113,7 @@ const ImageExportModal = ({
|
||||||
})
|
})
|
||||||
: elements;
|
: elements;
|
||||||
|
|
||||||
|
//FIXME: this is broken by fix for padding in export preview
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (
|
if (
|
||||||
exportedElements.length > 0 &&
|
exportedElements.length > 0 &&
|
||||||
|
|
|
@ -104,7 +104,7 @@ export const exportToCanvas = async (
|
||||||
canvas,
|
canvas,
|
||||||
fancyBackgroundImageKey: appState.fancyBackgroundImageKey,
|
fancyBackgroundImageKey: appState.fancyBackgroundImageKey,
|
||||||
backgroundColor: viewBackgroundColor,
|
backgroundColor: viewBackgroundColor,
|
||||||
exportScale: appState.exportScale,
|
exportScale: scale,
|
||||||
theme: renderConfig.theme,
|
theme: renderConfig.theme,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue