diff --git a/index.css b/index.css index 78991d9f..617c7ec6 100644 --- a/index.css +++ b/index.css @@ -157,13 +157,13 @@ table.content.detail tr.action i.bi-trash { color:var(--danger-bg-color); } body.width1 div.output div.video.width.bilibili iframe { height:200px; } div.output div.code.qrcode { position:relative; } -div.output div.code.qrcode { text-align:center; display:inline-block; } +div.output div.code.qrcode { text-align:center; display:inline-block; margin:10px 10px; } div.output div.code.qrcode>img.qrcode:hover { box-shadow:var(--notice-box-shadow); } div.output div.code.qrcode>img.qrcode { box-shadow:var(--box-shadow); border-radius:10px; - margin:10px 10px; height:200px; width:200px; + margin:10px 10px; height:220px; width:220px; } div.output div.code>img.avatar { box-shadow:var(--box-shadow); border-radius:10px; border:solid 2px white; object-fit:cover; --qrcode-icon-height:32px; diff --git a/plugin/state.js b/plugin/state.js index c8e9266b..67489e5f 100644 --- a/plugin/state.js +++ b/plugin/state.js @@ -316,7 +316,13 @@ Volcanos(chat.ONACTION, { }) }, openLocation: function(event, can) { can.user.agent.openLocation(can, can.request(event)) }, scanQRCode0: function(event, can, button) { can.user.agent.scanQRCode(can) }, - scanQRCode: function(event, can, button) { can.user.agent.scanQRCode(can, function(data) { can.runAction(event, button, can.base.Simple(data), function() { can.Update() }) }) }, + scanQRCode: function(event, can, button) { + can.user.agent.scanQRCode(can, function(data) { can.sub.runAction(event, button, can.base.Simple(data)) }) + return + can.user.agent.scanQRCode(can, function(data) { can.runAction(event, button, can.base.Simple(data), function() { + can.Update() + }) }) + }, record0: function(event, can, name, cb) { can.user.input(event, can, [{name: nfs.FILE, value: name}], function(list) { navigator.mediaDevices.getDisplayMedia({video: {height: window.innerHeight}}).then(function(stream) { var toast can.core.Next([3, 2, 1], function(item, next) { toast = can.user.toast(can, item + "s 后开始截图"), can.onmotion.delay(can, next, 1000) }, function() { toast.close()