mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-13 07:56:14 +01:00
🎨 面包屑优化
This commit is contained in:
parent
6ac292ff01
commit
571f753d66
3 changed files with 34 additions and 28 deletions
|
|
@ -3,7 +3,7 @@ import {fetchPost, fetchSyncPost} from "../../util/fetch";
|
|||
import {processRender} from "../util/processCode";
|
||||
import {highlightRender} from "./highlightRender";
|
||||
import {Constants} from "../../constants";
|
||||
import {genBreadcrumb} from "../wysiwyg/renderBacklink";
|
||||
import {genBreadcrumb, improveBreadcrumbAppearance} from "../wysiwyg/renderBacklink";
|
||||
import {avRender} from "./av/render";
|
||||
|
||||
export const blockRender = (protyle: IProtyle, element: Element, top?: number) => {
|
||||
|
|
@ -115,6 +115,7 @@ const renderEmbed = (blocks: {
|
|||
item.lastElementChild.insertAdjacentHTML("beforebegin", html +
|
||||
// 辅助上下移动时进行选中
|
||||
`<div style="position: absolute;">${Constants.ZWSP}</div>`);
|
||||
improveBreadcrumbAppearance(item.querySelector(".protyle-wysiwyg__embed"));
|
||||
} else {
|
||||
item.lastElementChild.insertAdjacentHTML("beforebegin", `<div class="ft__smaller ft__secondary b3-form__space--small" contenteditable="false">${window.siyuan.languages.refExpired}</div>
|
||||
<div style="position: absolute;">${Constants.ZWSP}</div>`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue