Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有关 二维码识别 子项的建议 #59

Closed
xihale opened this issue Feb 9, 2024 · 1 comment
Closed

有关 二维码识别 子项的建议 #59

xihale opened this issue Feb 9, 2024 · 1 comment

Comments

@xihale
Copy link
Contributor

xihale commented Feb 9, 2024

右键

问题

右键后右键菜单不会立刻关闭

建议

src/renderer/addRepeatMsgMenu.js Line 81 的 if 内 (搜索 "识别二维码" 即可到那一行)
qContextMenu.remove() 移动到 const content = await decodeQR(message_element) 前面(其实也可以先弹窗, 然后异步处理二维码结果(中间显示识别中即可!))
(不过说实话, 在这里我觉得 close 会比 remove 恰当一些!)

界面设计

问题

弹出界面很突兀(比如主题色问题), 并且会影响到背景的渲染窗口(使得其排版出问题)
image

建议

直接插入到二维码消息旁或者直接弹出一个只有一个

来显示结果(当然, 对于链接还是要简单转换为)即可!

@xihale
Copy link
Contributor Author

xihale commented Feb 10, 2024

Note

Swal.fire 属于 https://sweetalert.js.org/ 的 API
建议将其替换成更加底层的 electron API, 以防主题匹配问题!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant