Skip to content
This repository was archived by the owner on May 9, 2021. It is now read-only.
/ liandi Public archive

Commit 292b563

Browse files
committed
Merge remote-tracking branch 'origin/dev' into dev
2 parents 3ca0bef + 1ec26f3 commit 292b563

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

app/src/graph/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ export class Graph extends Model {
124124
!item.element.classList.contains("fn__none")) {
125125
const vditorElement = item.vditore.vditor.ir.element;
126126
vditorElement.querySelectorAll(".editor__blockref").forEach(item=> {
127-
item.classList.remove("editor__blockref")
128-
})
129-
const nodeElement = vditorElement.querySelector(`[data-node-id="${params.name}"]`) as HTMLElement
127+
item.classList.remove("editor__blockref");
128+
});
129+
const nodeElement = vditorElement.querySelector(`[data-node-id="${params.name}"]`) as HTMLElement;
130130
if (nodeElement && nodeElement.getClientRects().length > 0) {
131131
nodeElement.classList.add("editor__blockref");
132132
vditorElement.scrollTop = nodeElement.offsetTop - vditorElement.clientHeight / 2;

app/src/layout/Wnd.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -324,17 +324,17 @@ export class Wnd {
324324
window.liandi.centerLayout.element.style.width = (window.liandi.centerLayout.element.clientWidth - 200) + "px";
325325
layout.element.style.width = "206px";
326326
} else if (layout.type === "right" && layout.element.clientWidth < 7) {
327-
const rightWidth = window.innerWidth / 3
327+
const rightWidth = window.innerWidth / 3;
328328
window.liandi.centerLayout.element.style.width = (window.liandi.centerLayout.element.clientWidth - rightWidth) + "px";
329-
window.liandi.rightLayoutWidth = rightWidth
329+
window.liandi.rightLayoutWidth = rightWidth;
330330
} else if (layout.type === "top" && layout.element.clientHeight < 7) {
331331
window.liandi.centerLayout.parent.element.style.height = (window.liandi.centerLayout.parent.element.clientHeight - 200) + "px";
332332
layout.element.style.height = "206px";
333333
} else if (layout.type === "bottom" &&
334334
(layout.element.clientHeight + window.liandi.centerLayout.parent.element.clientHeight + window.liandi.topLayout.element.clientHeight > window.innerHeight
335335
|| layout.element.clientHeight < 7)) {
336336
window.liandi.centerLayout.parent.element.style.height = (window.liandi.centerLayout.parent.element.clientHeight - 200) + "px";
337-
window.liandi.bottomLayoutHeight = 200
337+
window.liandi.bottomLayoutHeight = 200;
338338
}
339339
} else if (layout.children[0].children.length === 1) {
340340
if (layout.type === "left" || layout.type === "right") {

app/src/websocket/onGetConfig.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const initBar = () => {
5454
title: `<svg class="item__svg"><use xlink:href="#iconFiles"></use></svg> ${i18n[window.liandi.config.lang].fileTree}`,
5555
callback(tab: Tab) {
5656
tab.addModel(new Files(tab));
57-
(window.liandi.leftLayout.children[0] as Wnd).resetLayout(window.liandi.leftLayout)
57+
(window.liandi.leftLayout.children[0] as Wnd).resetLayout(window.liandi.leftLayout);
5858
}
5959
});
6060
(window.liandi.leftLayout.children[0] as Wnd).addTab(tab);
@@ -66,7 +66,7 @@ const initBar = () => {
6666
panel: '<div class="graph__input"><input class="input"></div><div class="fn__flex-1"></div>',
6767
callback(tab: Tab) {
6868
tab.addModel(new Graph({tab}));
69-
(window.liandi.rightLayout.children[0] as Wnd).resetLayout(window.liandi.rightLayout)
69+
(window.liandi.rightLayout.children[0] as Wnd).resetLayout(window.liandi.rightLayout);
7070
}
7171
});
7272
(window.liandi.rightLayout.children[0] as Wnd).addTab(tab);

0 commit comments

Comments
 (0)