From a20c85da048324619a20131e5ac4219627635d5a Mon Sep 17 00:00:00 2001 From: shaoying Date: Sun, 28 Jun 2020 23:40:09 +0800 Subject: [PATCH] opt some --- frame.js | 5 ++--- index.css | 2 +- plugin/local/code/inner.css | 3 ++- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frame.js b/frame.js index 15d5f9f5..e6996f28 100644 --- a/frame.js +++ b/frame.js @@ -265,7 +265,7 @@ Volcanos("onappend", { _init: function(can, meta, list, cb, target, field) { met } var args = can.base.Obj(meta.args, []); can.core.Next(can.base.Obj(meta.inputs, []), add) - var count = 0; function run(event, cmds, cb, silent) { return sub.run(event, cmds, function(msg) { + var count = 0; function run(event, cmds, cb, silent) { return sub.run(event, cmds||[], function(msg) { sub.Status("ncmd", sub._history.length+"/"+count++) if (silent) { typeof cb == "function" && cb(msg); return } @@ -278,8 +278,7 @@ Volcanos("onappend", { _init: function(can, meta, list, cb, target, field) { met _option: option, _action: action, _output: output, }, Volcanos.meta.libs.concat(["/frame.js", display]), function(table) { table.Conf(sub.Conf()), table._msg = msg table.onimport && table.onimport._init && table.onimport._init(table, msg, msg.result||[], function() {}, output) - table.run = function(event, cmds, cb, silent) { cmds = cmds || [] - var last = sub._history[sub._history.length-1]; !can.core.Eq(last, cmds) && !silent && sub._history.push(cmds) + table.run = function(event, cmds, cb, silent) { return run(event, cmds, cb, silent) } diff --git a/index.css b/index.css index 52eaa440..eae2a109 100644 --- a/index.css +++ b/index.css @@ -235,7 +235,7 @@ div.upload div.item { fieldset.input { background-color:black; - position:absolute; + position:fixed; left:0; top:0; } fieldset.input { diff --git a/plugin/local/code/inner.css b/plugin/local/code/inner.css index 55512086..c6a23f00 100644 --- a/plugin/local/code/inner.css +++ b/plugin/local/code/inner.css @@ -91,6 +91,7 @@ fieldset.editor>div.output textarea.editor { background-color:#00000000; color:#00000000; caret-color:yellow; display:none; + min-width:480px; } fieldset.editor>div.output textarea.editor.normal { caret-color:#00000000; @@ -107,6 +108,6 @@ fieldset.editor>div.output textarea.command { border:solid 1px red; border-left:solid 3px green; z-index:200; - min-width:240px; + min-width:480px; }