Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/pull/15178

Vanessa2b3ddced33e9
diff --git a/app/package.json b/app/package.json
index 502cbb3e28..bd641c5fc4 100644
--- a/app/package.json
+++ b/app/package.json
@@ -58,7 +58,7 @@
"clean-webpack-plugin": "^4.0.0",
"css-loader": "^6.7.1",
"dayjs": "^1.11.5",
- "electron": "37.1.0",
+ "electron": "v37.1.0",
"electron-builder": "26.0.12",
"encoding": "^0.1.13",
"esbuild-loader": "^3.0.1",
diff --git a/app/pnpm-lock.yaml b/app/pnpm-lock.yaml
index 57dfa38abe..0a3bc988ac 100644
--- a/app/pnpm-lock.yaml
+++ b/app/pnpm-lock.yaml
@@ -40,7 +40,7 @@ importers:
specifier: ^1.11.5
version: 1.11.13
electron:
- specifier: 37.1.0
+ specifier: v37.1.0
version: 37.1.0
electron-builder:
specifier: 26.0.12
@@ -131,8 +131,8 @@ packages:
resolution: {integrity: sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ==}
engines: {node: '>=12'}
- '@electron/node-gyp@https://codeload.github.com/electron/node-gyp/tar.gz/06b29aafb7708acef8b3669835c8a7857ebc92d2':
- resolution: {tarball: https://codeload.github.com/electron/node-gyp/tar.gz/06b29aafb7708acef8b3669835c8a7857ebc92d2}
+ '@electron/node-gyp@git+https://[email protected]:electron/node-gyp.git#06b29aafb7708acef8b3669835c8a7857ebc92d2':
+ resolution: {commit: 06b29aafb7708acef8b3669835c8a7857ebc92d2, repo: [email protected]:electron/node-gyp.git, type: git}
version: 10.2.0-electron.1
engines: {node: '>=12.13.0'}
hasBin: true
@@ -451,42 +451,36 @@ packages:
engines: {node: '>= 10.0.0'}
cpu: [arm]
os: [linux]
- libc: [glibc]
'@parcel/[email protected]':
resolution: {integrity: sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==}
engines: {node: '>= 10.0.0'}
cpu: [arm]
os: [linux]
- libc: [musl]
'@parcel/[email protected]':
resolution: {integrity: sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==}
engines: {node: '>= 10.0.0'}
cpu: [arm64]
os: [linux]
- libc: [glibc]
'@parcel/[email protected]':
resolution: {integrity: sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==}
engines: {node: '>= 10.0.0'}
cpu: [arm64]
os: [linux]
- libc: [musl]
'@parcel/[email protected]':
resolution: {integrity: sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==}
engines: {node: '>= 10.0.0'}
cpu: [x64]
os: [linux]
- libc: [glibc]
'@parcel/[email protected]':
resolution: {integrity: sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==}
engines: {node: '>= 10.0.0'}
cpu: [x64]
os: [linux]
- libc: [musl]
'@parcel/[email protected]':
resolution: {integrity: sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==}
@@ -2803,7 +2797,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@electron/node-gyp@https://codeload.github.com/electron/node-gyp/tar.gz/06b29aafb7708acef8b3669835c8a7857ebc92d2':
+ '@electron/node-gyp@git+https://[email protected]:electron/node-gyp.git#06b29aafb7708acef8b3669835c8a7857ebc92d2':
dependencies:
env-paths: 2.2.1
exponential-backoff: 3.1.2
@@ -2840,7 +2834,7 @@ snapshots:
'@electron/[email protected]':
dependencies:
- '@electron/node-gyp': https://codeload.github.com/electron/node-gyp/tar.gz/06b29aafb7708acef8b3669835c8a7857ebc92d2
+ '@electron/node-gyp': git+https://[email protected]:electron/node-gyp.git#06b29aafb7708acef8b3669835c8a7857ebc92d2
'@malept/cross-spawn-promise': 2.0.0
chalk: 4.1.2
debug: 4.4.0
diff --git a/app/src/assets/scss/business/_av.scss b/app/src/assets/scss/business/_av.scss
index 06d7370c61..95ea501cd6 100644
--- a/app/src/assets/scss/business/_av.scss
+++ b/app/src/assets/scss/business/_av.scss
@@ -27,10 +27,10 @@
overflow-x: auto;
overflow-y: hidden;
cursor: auto;
- }
- &[data-av-type="gallery"] > .av__container {
- overflow: inherit;
+ &.fn__block {
+ overflow: visible;
+ }
}
&__pulse {
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index e4ca49ebdd..47c2b19850 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -622,14 +622,6 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
}
});
if (data["data-av-type"]) {
- // https://github.com/siyuan-note/siyuan/pull/15178#discussion_r2173842215
- const oldAvType = item.getAttribute("data-av-type");
- const containerElement = item.querySelector(".av__container") as HTMLElement;
- if (containerElement && data["data-av-type"] === "table" && oldAvType === "gallery") {
- containerElement.style.overflow = "inherit";
- } else if (containerElement && data["data-av-type"] === "gallery" && oldAvType === "table") {
- containerElement.style.overflow = "";
- }
item.setAttribute("data-av-type", data["data-av-type"]);
}
const attrElements = item.querySelectorAll(".protyle-attr");