Skip to content

Code blocks auto close when scrolling to the bottom of the page #797

@beef331

Description

@beef331

Describe the bug
When you scroll down a page with an expanded code block they will close automatically if a message was before them.

To Reproduce
Steps to reproduce the behavior:

  1. Be in a room with a text message proceeding a long code block
  2. Expand the code block
  3. Scroll down, the code block will close

Expected behavior
Code block to stay expanded until the user closes it or it is an historical event

Screenshots

simplescreenrecorder-2026-03-04_10.50.28.mp4
Device Information

Device
Platform: linux
Version: v0.4.1
Git Hash: c2ee370d18c822673b24b6579842a01b971b1584
Detail: linux-x64
Build Timestamp: 1772620800609 (March 4, 2026)

System Info
Name: EndeavourOS

Display Server: x11
Desktop Environment: x11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions