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

feat: select with mouse while checkbox closed #157

Merged
merged 3 commits into from
Mar 9, 2024

Conversation

liuycy
Copy link
Member

@liuycy liuycy commented Mar 6, 2024

改动如下

  • 新增本地配置 在复选框关闭时使用鼠标框选
  • 启用鼠标框选功能时(使用 @viselect/vanilla 实现)
    • .obj-box 里可以鼠标滑动框选文件及文件夹
    • 支持按住 ctrl/command 键可以进行额外单选切换
    • 支持按住 shift 键可以进行范围选择(以上次点击为起点,以这次点击为终点,该功能原本就支持 代码逻辑
  • 修复之前版本在 网格模式 下直接预览图片失效问题
  • 选中多个文件时,右键菜单改为与 复选框 底部工具栏提供的功能 一致,选中单个保持不变

演示效果如下

1.mp4

多选右键菜单如下

image

@liuycy liuycy marked this pull request as draft March 6, 2024 10:07
@pull-request-size pull-request-size bot added size/XL and removed size/L labels Mar 7, 2024
@liuycy liuycy marked this pull request as ready for review March 7, 2024 03:05
@xhofe xhofe merged commit 0946e6a into alist-org:main Mar 9, 2024
4 checks passed
@liuycy liuycy mentioned this pull request Mar 10, 2024
4 tasks
@liuycy liuycy deleted the better-interaction branch March 12, 2024 14:44
@liuycy liuycy restored the better-interaction branch March 12, 2024 14:45
@liuycy liuycy deleted the better-interaction branch March 12, 2024 14:45
@li-peifeng
Copy link

在MAC safari下二级菜单错位
截屏2024-03-13 18 02 24

@liuycy
Copy link
Member Author

liuycy commented Mar 14, 2024

在MAC safari下二级菜单错位

用 safari 打开我们的开发预览页面 https://alist.pages.dev 试试,我这里没有复现这个问题 😂

image

@li-peifeng
Copy link

在MAC safari下二级菜单错位

用 safari 打开我们的开发预览页面 https://alist.pages.dev 试试,我这里没有复现这个问题 😂

image

找到原因了,很奇怪,只要菜单开启模糊就会错位

@liuycy liuycy mentioned this pull request Mar 20, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants