Skip to content

File scrolls out of view when collapsing / marking as viewed via sticky header #23701

Closed
@jpraet

Description

@jpraet

Description

When you are reviewing a file, scrolling down to the end of the file, and then collapsing it via the image or by marking it as image in the sticky header, the file scrolls out of view and you end up somewhere further on in another file of the diff.

https://try.gitea.io/jpraet/test/pulls/13/files

Screenshots

when I click "viewed" here on the first file:
image

It disappears out of view and I end up somewhere near the end of the 2nd file, and need to scroll back up to review that 2nd file.

image

Gitea Version

1.20.0+dev-265-gc5cfc0855

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

No response

Browser Version

Firefox 102.8.0.esr

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UItype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions