Skip to content

Commit 2b3ddce

Browse files
committed
🎨 #15178
1 parent 863bd7d commit 2b3ddce

File tree

4 files changed

+9
-23
lines changed

4 files changed

+9
-23
lines changed

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"clean-webpack-plugin": "^4.0.0",
5959
"css-loader": "^6.7.1",
6060
"dayjs": "^1.11.5",
61-
"electron": "37.1.0",
61+
"electron": "v37.1.0",
6262
"electron-builder": "26.0.12",
6363
"encoding": "^0.1.13",
6464
"esbuild-loader": "^3.0.1",

app/pnpm-lock.yaml

Lines changed: 5 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/assets/scss/business/_av.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
overflow-x: auto;
2828
overflow-y: hidden;
2929
cursor: auto;
30-
}
3130

32-
&[data-av-type="gallery"] > .av__container {
33-
overflow: inherit;
31+
&.fn__block {
32+
overflow: visible;
33+
}
3434
}
3535

3636
&__pulse {

app/src/protyle/wysiwyg/transaction.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -622,14 +622,6 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
622622
}
623623
});
624624
if (data["data-av-type"]) {
625-
// https://github.com/siyuan-note/siyuan/pull/15178#discussion_r2173842215
626-
const oldAvType = item.getAttribute("data-av-type");
627-
const containerElement = item.querySelector(".av__container") as HTMLElement;
628-
if (containerElement && data["data-av-type"] === "table" && oldAvType === "gallery") {
629-
containerElement.style.overflow = "inherit";
630-
} else if (containerElement && data["data-av-type"] === "gallery" && oldAvType === "table") {
631-
containerElement.style.overflow = "";
632-
}
633625
item.setAttribute("data-av-type", data["data-av-type"]);
634626
}
635627
const attrElements = item.querySelectorAll(".protyle-attr");

0 commit comments

Comments
 (0)