mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🚨
This commit is contained in:
@@ -746,7 +746,7 @@ export const openMenuPanel = (options: {
|
||||
break;
|
||||
} else if (type === "openAssetItem") {
|
||||
const assetLink = target.parentElement.dataset.content;
|
||||
const suffix = pathPosix().extname(assetLink)
|
||||
const suffix = pathPosix().extname(assetLink);
|
||||
if (isLocalPath(assetLink) && !isMobile() && (
|
||||
[".pdf"].concat(Constants.SIYUAN_ASSETS_AUDIO).concat(Constants.SIYUAN_ASSETS_VIDEO).includes(suffix) && (
|
||||
suffix !== ".pdf" || ( suffix === ".pdf" && !assetLink.startsWith("file://"))
|
||||
|
||||
@@ -21,7 +21,7 @@ export const avRender = (element: Element, protyle: IProtyle, cb?: () => void) =
|
||||
if (e.getAttribute("data-render") === "true") {
|
||||
return;
|
||||
}
|
||||
let time: number
|
||||
let time: number;
|
||||
if (e.firstElementChild.innerHTML === "") {
|
||||
e.style.width = e.parentElement.clientWidth - 40 + "px";
|
||||
time = new Date().getTime();
|
||||
@@ -34,8 +34,8 @@ export const avRender = (element: Element, protyle: IProtyle, cb?: () => void) =
|
||||
<div class="av__cell" style="width: 200px"><span class="av__pulse"></span></div>
|
||||
<div class="av__cell" style="width: 200px"><span class="av__pulse"></span></div>
|
||||
</div>`;
|
||||
})
|
||||
e.firstElementChild.innerHTML = html
|
||||
});
|
||||
e.firstElementChild.innerHTML = html;
|
||||
}
|
||||
const left = e.querySelector(".av__scroll")?.scrollLeft || 0;
|
||||
const headerTransform = (e.querySelector(".av__row--header") as HTMLElement)?.style.transform;
|
||||
|
||||
Reference in New Issue
Block a user