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

网格布局下点击浏览图片的问题 #212

Closed
KioProject123 opened this issue Dec 13, 2021 · 2 comments
Closed

网格布局下点击浏览图片的问题 #212

KioProject123 opened this issue Dec 13, 2021 · 2 comments
Projects

Comments

@KioProject123
Copy link

Alist Version / Alist 版本

v2.0.1-0-ga295e70-dirty

Describe the bug / 问题描述

1、网格布局下点击浏览图片会同时请求同目录下的所有图片,在图片数量庞大的情况下会导致加载缓慢以及不必要的流量流失。
后台请求

2、预览图拉伸异常
前台

3、点击浏览图片后直接返回上一层,出现异常的请求 (path not found)
异常请求

Reproduction / 复现链接

http://alist.kiocg.com:30302/%E2%91%A1%E3%80%96%E5%B1%95%E7%A4%BA%E5%9B%BE%E3%80%97/%E3%80%90%E5%9C%B0%E5%BD%A2%E9%A3%8E%E5%85%89%E3%80%91world1

日志 / Logs

No response

xhofe added a commit to alist-org/web-v2 that referenced this issue Dec 13, 2021
xhofe added a commit to alist-org/web-v2 that referenced this issue Dec 13, 2021
@xhofe
Copy link
Member

xhofe commented Dec 13, 2021

  1. 你觉得应该如何设计浏览图片的方式,react-viewer提供的组件下方的预览图就是原图,所以会一次性请求所有图片
  2. 已修复,如果要完全无拉伸的话,自定义中添加:
.react-viewer-navbar img{
  object-fit: cover;
}
  1. 已修复

@KioProject123
Copy link
Author

  1. 你觉得应该如何设计浏览图片的方式,react-viewer提供的组件下方的预览图就是原图,所以会一次性请求所有图片

react-viewer组件下方的图如果没法改成预览图的话,直接去除也可以,毕竟没点开react-viewer之前已经有网格预览图了。
网格预览图默认可以改得大点,比如我上面提供的网址里那样的效果看图会比较舒服

@xhofe xhofe added this to To do in alist Dec 31, 2021
@xhofe xhofe moved this from To do to Done in alist Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
alist
Done
Development

No branches or pull requests

2 participants