lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
44.4k stars 9.95k forks source link

[Request] 移动端长按显示菜单 #2329

Open sxjeru opened 6 months ago

sxjeru commented 6 months ago

🥰 需求描述

当前移动端的话题、助手的菜单按钮点按并不便利,提出以下方案。(仅移动端环境)

注:对话气泡不适合长按显示菜单。

🧐 解决方案

见上。

📝 补充信息

重复 #1749

lobehubbot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Description of requirements

Currently, it is inconvenient to click the menu buttons of topics and assistants on mobile devices. The following solutions are proposed.

Note: Speech bubbles are not suitable for long pressing to display menus.

🧐 Solution

See above.

📝 Supplementary information

Related #1920

lobehubbot commented 6 months ago

👀 @sxjeru

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

arvinxx commented 6 months ago

长按的交互挺好的,类似conextMenu这样。但之前我们做下来最大的问题是iOS里没有不会触发 contextMenu 事件

lobehubbot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


The long press interaction is very good, similar to conextMenu. But the biggest problem we had before was that the contextMenu event was not triggered in iOS.

sxjeru commented 6 months ago

可以考虑为 ios 单独写触发器,当然实际前两条实现后,至少就不会影响使用了。 即便长按只有某些设备支持,作为一个好的特性,有总比没有好。


助手列表默认显示菜单的话,会话时间会被隐藏。目前倾向于显示在菜单按钮的左边或者上方。 另外具体列表项样式需在 lobe-ui 修改。

lobehubbot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


You can consider writing a separate trigger for ios. Of course, after the first two are actually implemented, at least it will not affect the use. Even if long press is only supported by some devices, as a good feature, it is better than nothing.