mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
This commit is contained in:
parent
223011f84b
commit
be10050b7f
1 changed files with 2 additions and 2 deletions
|
|
@ -96,8 +96,8 @@ export const exportImage = (id: string) => {
|
|||
highlightRender(previewElement);
|
||||
previewElement.querySelectorAll("table").forEach((item: HTMLElement) => {
|
||||
if (item.clientWidth > item.parentElement.clientWidth) {
|
||||
// @ts-ignore
|
||||
item.style.zoom = item.parentElement.clientWidth / item.clientWidth;
|
||||
item.setAttribute("style", `transform: scale(${item.parentElement.clientWidth / item.clientWidth});transform-origin: top left;`);
|
||||
item.parentElement.style.overflow = "hidden";
|
||||
}
|
||||
});
|
||||
previewElement.querySelectorAll(".li > .protyle-action > svg").forEach(item => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue