diff --git a/frame.js b/frame.js index bab51fc5..e45c6ac5 100644 --- a/frame.js +++ b/frame.js @@ -495,7 +495,7 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) { if (can.base.isFunc(value)) { can.onengine._plugin(event, can._root, can.request(event), value.can, [meta.index].concat(cmds), cb) } else { - can.runActionCommand(sub.request(event), sub._index, cmds, cb) + can.runActionCommand(sub.request(event, {pod: meta.space}), sub._index, cmds, cb) } } sub._index = value.index||meta.index, can.base.isFunc(cb) && cb(sub, meta, skip) diff --git a/index.css b/index.css index 5bb14aba..b7bd5e05 100644 --- a/index.css +++ b/index.css @@ -38,7 +38,7 @@ table.content col.action { width:180px; } h1 { text-align:center; margin:20px 0; } h2 { margin:20px 0; } h3 { margin:20px 0; } hr, td.hr { border-bottom:var(--plugin-border-color) dashed 1px; margin:5px; } ul { padding-left:20px; margin:20px 0; } -kbd { padding:0 10px; } +kbd { padding:0 5px; } img { margin-bottom:-8px; } /* fieldset */ fieldset>legend { margin-right:10px; } @@ -84,6 +84,7 @@ body>div.carte input[name=filter] { margin:5px; width:calc(100% - 10px); positio body>div.carte div.item { white-space:pre; padding:5px 10px; } body>div.carte div.item span.icon.next { float:right; line-height:22px; height:22px; } body>div.carte.select.float>div.item { text-align:center; } +body>div.input { padding:20px; } body>div.input td { padding:10px; } body>div.input td span.icon { margin-left:-25px; visibility:hidden; } body>div.input td:hover span.icon { visibility:visible; } @@ -106,7 +107,7 @@ legend { font-size:1.2rem; line-height:32px; height:32px; } select, input { font-size:1rem; height:32px; } input::placeholder, textarea::placeholder { font-style:italic; } textarea { font-size:1rem; tab-size:2; padding:5px; height:96px; width:100%; resize:vertical; } table.content, div.code, div.story[data-type=spark] { white-space:pre; margin:0; } -div.story[data-type=spark] { padding:5px 10px; border-left:var(--notice-fg-color) solid 5px; } +div.story[data-type=spark] { padding:0 5px; border-left:var(--notice-fg-color) solid 5px; } fieldset>div.action>div.tabs { font-style:italic; padding:0 10px;} fieldset>div.output>div.code { font-size:14px; } fieldset>div.status>div.item { padding:5px; height:31px; } diff --git a/panel/river.js b/panel/river.js index f241d329..e02b4087 100644 --- a/panel/river.js +++ b/panel/river.js @@ -90,8 +90,9 @@ Volcanos(chat.ONDETAIL, { }) }) }, addcmd: function(event, can, button, river, storm) { can.user.input(can.request(event, {title: "添加工具"}), can, [ - {name: web.SPACE, value: can.misc.Search(can, ice.POD)||""}, - mdb.ICON, {name: ctx.INDEX, need: "must"}, ctx.ARGS, ctx.DISPLAY, ctx.STYLE, + {name: web.SPACE, _trans: "空间"}, + {name: ctx.INDEX, need: "must", _trans: "命令"}, {name: ctx.ARGS, _trans: "参数"}, + {name: mdb.ICON, _trans: "图标"}, {name: ctx.STYLE, _trans: "样式"}, {name: ctx.DISPLAY, _trans: "脚本"}, ], function(args) { can.run({}, [river, storm, chat.STORM, ctx.ACTION, mdb.INSERT].concat(args), function(msg) { can.onengine.signal(can, chat.ONSTORM_SELECT, can.request(event, {river: can.Conf(chat.RIVER, river), storm: can.Conf(chat.STORM, storm), refresh: ice.TRUE}))