diff --git a/index.css b/index.css index c4e17ec1..e46bbcfc 100644 --- a/index.css +++ b/index.css @@ -690,6 +690,8 @@ fieldset.plug>div.output table.content { width:100%; } fieldset.plug.dream.zone>div.output>div.item { display:flex; padding:var(--input-padding); margin:var(--input-margin); } fieldset.plug.dream.zone>div.output>div.item>img { margin-right:var(--input-margin); } fieldset.plug.dream.zone>div.output>div.item>span { line-height:var(--action-height); } +body.en span[lang^=zh] { display:none; } +body.zh span[lang^=en] { display:none; } body>div.carte.header.avatar img { width:370px; } body>fieldset.story.web.chat.wx.agent { position:fixed; left:0; bottom:0; } body.zh fieldset.inner>div.output>div.project>div.zone>div.item { letter-spacing:10px; border-top:var(--box-border); } diff --git a/plugin/state.js b/plugin/state.js index 1f53ce72..f848ac47 100644 --- a/plugin/state.js +++ b/plugin/state.js @@ -15,7 +15,7 @@ Volcanos(chat.ONIMPORT, { msg.Table(function(item) { can.onappend._plugin(can, item, {_space: can.ConfSpace(), index: item.index, args: can.base.Obj(item.args||item.arg, []), height: height, width: width}, function(sub) { if (can.base.isIn(sub.ConfIndex(), web.WIKI_PORTAL, web.CHAT_IFRAME, web.CHAT_MACOS_DESKTOP, web.WIKI_WORD, web.CODE_VIMER, - )) { height = can.base.Max(can.base.Min(can.onexport.outputHeight(can), 640), can.ConfHeight()) } + )) { height = can.base.Max(can.base.Min(can.onexport.outputHeight(can), 640), can.ConfHeight()-2*html.ACTION_HEIGHT) } can.onmotion.delay(can, function() { can.onmotion.scrollIntoView(can, sub._target) }, 300) sub.run = function(event, cmds, cb) { var index = msg.Option(ice.MSG_INDEX) can.run(event, (msg[ice.MSG_PREFIX]? msg[ice.MSG_PREFIX]: index? [ctx.RUN, index]: []).concat(cmds), cb, true)