nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.9k stars 4.01k forks source link

[Bug]: Scroll Bar Jumps After Closing Image Preview in Grid View #46084

Open sword2020 opened 3 months ago

sword2020 commented 3 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

When querying files and switching to grid view, after previewing an image file and closing the preview window, the scroll bar does not return to its previous position and jumps away. 在查询文件并切换到网格视图时,预览图片文件后关闭预览窗口,滚动条不能恢复到之前的位置,会跳走。

Steps to reproduce

1.Query files. 2.Switch to grid view. 3.Preview an image file. 4.Close the preview window. 5.Observe the scroll bar position.

Expected behavior

The scroll bar should return to its previous position after closing the preview window, allowing users to continue browsing from where they left off.

Installation method

None

Nextcloud Server version

29

Operating system

RHEL/CentOS

PHP engine version

PHP 8.1

Web server

Nginx

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 22 to 23)

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

qibao07 commented 3 months ago

Regardless of grid view or list view, the scroll bar will change after opening and closing the picture, and it will not jump back to the original position after closing.

As long as it can be opened and viewed, such as txt, this problem will occur.

NC29