mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
d540b7242a
commit
1e08b29735
2 changed files with 15 additions and 8 deletions
|
|
@ -975,7 +975,7 @@ export const openMenuPanel = (options: {
|
|||
y: rect.bottom,
|
||||
w: target.parentElement.clientWidth + 8,
|
||||
h: rect.height
|
||||
}, (url) => {
|
||||
}, (url, name) => {
|
||||
let value: IAVCellAssetValue;
|
||||
if (Constants.SIYUAN_ASSETS_IMAGE.includes(pathPosix().extname(url).toLowerCase())) {
|
||||
value = {
|
||||
|
|
@ -987,7 +987,7 @@ export const openMenuPanel = (options: {
|
|||
value = {
|
||||
type: "file",
|
||||
content: url,
|
||||
name: pathPosix().basename(url).substring(0, Constants.SIZE_LINK_TEXT_MAX)
|
||||
name
|
||||
};
|
||||
}
|
||||
updateAssetCell({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue