1
0
forked from x/volcanos

opt search

This commit is contained in:
harveyshao 2022-04-08 12:29:23 +08:00
parent 4841116501
commit e1b94b5efb
2 changed files with 2 additions and 0 deletions

View File

@ -2,3 +2,4 @@ fieldset.Search { background:#041a25bd; padding:10px; position:fixed; left:0px;
fieldset.Search input.word { width:-webkit-fill-available; } fieldset.Search input.word { width:-webkit-fill-available; }
fieldset.Search div.output div.content table { min-width:400px; } fieldset.Search div.output div.content table { min-width:400px; }
fieldset.Search div.output div.display { max-height:200px; } fieldset.Search div.output div.display { max-height:200px; }
fieldset.Search div.output a { color:yellow; }

View File

@ -94,6 +94,7 @@ Volcanos("onaction", {help: "交互操作", list: [cli.CLEAR, cli.CLOSE, cli.DON
}, },
plugin: function(event, can, index) { var line = can.list[index] plugin: function(event, can, index) { var line = can.list[index]
if (event.target.tagName == "A") { return }
if (line.ctx == "web.wiki" && line.cmd == "word") { return } if (line.ctx == "web.wiki" && line.cmd == "word") { return }
if (can.base.isFunc(line.text)) { return can.onmotion.hide(can), line.text(event) } if (can.base.isFunc(line.text)) { return can.onmotion.hide(can), line.text(event) }