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

plugin-chat: enhance #3

Open
undefined-moe opened this issue Apr 7, 2021 · 7 comments
Open

plugin-chat: enhance #3

undefined-moe opened this issue Apr 7, 2021 · 7 comments

Comments

@undefined-moe
Copy link

  1. 图太大了,一张图就是一整屏,建议缩小到1/4或1/5
  2. 添加message.filter
  3. auto scroll
@undefined-moe
Copy link
Author

  1. history clean

消息多了会很卡

@shigma
Copy link
Collaborator

shigma commented Apr 7, 2021

@undefined-moe 感谢你的反馈,感觉意见都挺中肯的。不过还是每一点单独说吧。

  1. 目前的逻辑是 max-height: 400px; max-width: 100%,高度限制改成 320px 你觉得呢?
  2. 如果是聊天的话,所有的消息都发送到客户端应该是合理的。如果要做过滤器也要等做了频道标签以后再在汇总界面(也就是你现在看到的界面)支持过滤。
  3. 这个已经做了,但确实可能在一些情况下失效,请你具体描述一下。
  4. clean 的话目前可以手动,打开控制台输入 localStorage.setItem('koishi:chat', null)。卡的问题之后考虑通过每次根据屏幕大小只渲染部分元素来解决。

@undefined-moe
Copy link
Author

  1. 320px合理
  2. 可以前端加个filter的输入框
  3. 包括图片查看器也点不开(仅裂的图能点进查看器模式)
  4. 可以加个按钮

@shigma
Copy link
Collaborator

shigma commented Apr 8, 2021

24 等稳定以后再做,3 目前无法复现。

@shigma
Copy link
Collaborator

shigma commented Apr 8, 2021

auto scroll 逻辑正常:当页面已经滚动至下方时,收到新消息会继续保持在底部;否则不会变化。

@shigma
Copy link
Collaborator

shigma commented Apr 18, 2021

下个版本将支持 chat 配置项:maxMessages(默认值 1000),以解决 4 的问题。

@shigma shigma transferred this issue from koishijs/koishi Jul 12, 2022
@shigma shigma transferred this issue from koishijs/webui Apr 4, 2023
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

3 participants
@undefined-moe @shigma and others