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

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

Open
3 tasks
sxjeru opened this issue May 1, 2024 · 6 comments · May be fixed by #2330
Open
3 tasks

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

sxjeru opened this issue May 1, 2024 · 6 comments · May be fixed by #2330
Labels
🌠 Feature Request New feature or request | 特性与建议

Comments

@sxjeru
Copy link
Contributor

sxjeru commented May 1, 2024

🥰 需求描述

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

  • 助手列表默认显示所有“菜单”按钮。目前需点击才显示,但点击后会直接跳转进入对话,导致无法点按菜单项。
  • 话题列表默认显示所有话题的“菜单”按钮。目前需长按或点击显示。
  • 助手、话题长按直接显示出菜单。

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

🧐 解决方案

见上。

📝 补充信息

重复 #1749

@sxjeru sxjeru added the 🌠 Feature Request New feature or request | 特性与建议 label May 1, 2024
@lobehubbot
Copy link
Member

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.

  • Assistant list displays "Menu" by default. Currently, you need to click to display it, but clicking will jump directly to the conversation, making it impossible to click on the menu item.
  • The topic list displays "Menu" by default. Currently, you need to press and hold or click to display.
  • Long press on assistant or topic to directly display the menu.

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

🧐 Solution

See above.

📝 Supplementary information

Related #1920

@lobehubbot
Copy link
Member

👀 @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
Copy link
Contributor

arvinxx commented May 1, 2024

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

@lobehubbot
Copy link
Member

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
Copy link
Contributor Author

sxjeru commented May 1, 2024

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


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

@lobehubbot
Copy link
Member

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.

sxjeru added a commit to sxjeru/lobe-chat that referenced this issue May 1, 2024
sxjeru added a commit to sxjeru/lobe-chat that referenced this issue May 1, 2024
@sxjeru sxjeru linked a pull request May 1, 2024 that will close this issue
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants