Skip to content

Incorrect scroll behavior when viewing logs "From older to latest" #432

@tsutsu3

Description

@tsutsu3

Describe the bug

When the query logs are displayed in "From older to latest" order, scrolling to the bottom triggers the loading of older logs instead of newer ones.

This causes the scroll position to jump unexpectedly and disrupts the reading flow.

To Reproduce

Steps to reproduce the behavior:

  1. Go to Logs screen
  2. Set the log order to From older to latest
  3. Scroll down to the bottom of the log list.
  4. Observe

Expected behavior

When viewing logs in “From older to latest” order, reaching the bottom should fetch the next newer time window of logs, not the next older one.

The scroll position should remain stable after loading, and the behavior should be consistent regardless of whether Live Log is active.

Screenshots

Environments

  • Device:
  • OS:
  • Browser:
  • Browser Version:
  • Pi-hole Client Version: v1.7.0
  • Pi-hole Version:

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions