mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
840ab33fb1
commit
bab9f7491f
2 changed files with 5 additions and 2 deletions
|
|
@ -521,10 +521,12 @@ export class Backlink extends Model {
|
||||||
if (data.linkRefsCount === 0) {
|
if (data.linkRefsCount === 0) {
|
||||||
this.status[this.blockId].backlinkMStatus = 0;
|
this.status[this.blockId].backlinkMStatus = 0;
|
||||||
} else {
|
} else {
|
||||||
this.status[this.blockId].backlinkOpenIds = [data.backlinks[0].id];
|
|
||||||
this.status[this.blockId].backlinkMStatus = 1;
|
this.status[this.blockId].backlinkMStatus = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (data.linkRefsCount > 0) {
|
||||||
|
this.status[this.blockId].backlinkOpenIds = [data.backlinks[0].id];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// restore status
|
// restore status
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,8 @@ export const setPadding = (protyle: IProtyle) => {
|
||||||
}
|
}
|
||||||
if (!isMobile()) {
|
if (!isMobile()) {
|
||||||
// 防止右侧分屏后,左侧页签抖动;10 为滚动条宽度
|
// 防止右侧分屏后,左侧页签抖动;10 为滚动条宽度
|
||||||
if (!window.siyuan.config.editor.fullWidth) {
|
if (!protyle.options.backlinkData && // https://github.com/siyuan-note/siyuan/issues/6099
|
||||||
|
!window.siyuan.config.editor.fullWidth) {
|
||||||
protyle.wysiwyg.element.style.width = (protyle.element.clientWidth - 10) + "px";
|
protyle.wysiwyg.element.style.width = (protyle.element.clientWidth - 10) + "px";
|
||||||
if (protyle.options.render.title) {
|
if (protyle.options.render.title) {
|
||||||
protyle.title.element.style.width = (protyle.element.clientWidth - min16 - min24 - 10) + "px";
|
protyle.title.element.style.width = (protyle.element.clientWidth - min16 - min24 - 10) + "px";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue