Menu

#136 [bug] message history scrolling calculation

closed
nobody
2025-10-08
2025-09-07
Anonymous
No

Originally created by: endernoke
Originally owned by: endernoke

Describe the bug
When calculating the number of visible messages in the scrolling chat history, we hardcoded the average height of each message to be 3 lines which is obviously technical debt.
Usually a lot of empty space is left in the message history view which hurts UX:

Image

This is especially bad when there are a lot of images in the chat (which have height = 17 lines), so the chat history display might overflow. This may lead to inconsistent scrolling.

To Reproduce
Steps to reproduce the behavior:

  1. npm run start chat
  2. Select a chat
  3. Observe display behavior, try scrolling up/down with :k, :j

Expected behavior
Message history display should utilize all available space, by either displaying all messages that fit in the display area or spacing the messages evenly.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Related

Tickets: #145
Tickets: #150

Discussion

  • Anonymous

    Anonymous - 2025-10-04
     
  • Anonymous

    Anonymous - 2025-10-04

    Originally posted by: endernoke

    There's a breakthrough in getting a generic scrollview to work, will have a PR coming today/tmr 😄

     
  • Anonymous

    Anonymous - 2025-10-08

    Ticket changed by: supreme-gg-gg

    • status: open --> closed
     

Log in to post a comment.

Monday.com Logo