diff --git a/app/src/block/Panel.ts b/app/src/block/Panel.ts index 4468d7d3c..05bd50f39 100644 --- a/app/src/block/Panel.ts +++ b/app/src/block/Panel.ts @@ -121,13 +121,11 @@ export class BlockPanel { openNewWindowById(this.nodeIds[0]); /// #endif } else if (type === "stickTab") { - /// #if !BROWSER openFileById({ app: options.app, id: this.nodeIds[0], action: this.editors[0].protyle.block.rootID !== this.nodeIds[0] ? [Constants.CB_GET_ALL, Constants.CB_GET_FOCUS] : [Constants.CB_GET_CONTEXT], }); - /// #endif } event.preventDefault(); event.stopPropagation(); @@ -233,14 +231,14 @@ export class BlockPanel { return; } let openHTML = ""; - /// #if !BROWSER if (this.nodeIds.length === 1) { openHTML = ` - - `; + /// #if !BROWSER + openHTML += ` +`; + /// #endif } - /// #endif let html = `
${openHTML}