**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** https://github.com/user-attachments/assets/a3d3d556-9309-4084-9db9-8393d148ab0e <!--- Please paste "Device Info" below this line. You can grab device info from Commet > Settings > About > Click the 'Copy' Icon ---> <details open> <summary>Device Information</summary> <br> **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` </details>
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:
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:
linuxVersion:
v0.4.1Git Hash:
c2ee370d18c822673b24b6579842a01b971b1584Detail:
linux-x64Build Timestamp:
1772620800609 (March 4, 2026)System Info
Name:
EndeavourOSDisplay Server:
x11Desktop Environment:
x11