Skip to content

[BUG] Chat message rows background is annoying on new messages #231

Description

@mdziekon

Problem description

When reading chat messages, eg. catching up on previously written messages, and someone is publishing new messages in the meantime, it's slightly annoying when the background of the messages shift - the currently read message will shift to the adjacent message's background.

Engine details

  • Engine version:
    • version 1.1.0
    • commit f2f1847
  • Custom modifications:
    • Yes
    • No
  • Environment:
    • local
    • testing (inaccessible from the outside)
    • production (accessible from the outside world)
  • Configuration:
    • Game speeds: N/A
    • Debris settings: N/A
    • Any other relevant config entry: N/A

Steps to reproduce

Prerequisites:

  • Have ~50 messages in any chat room

Steps to reproduce the behavior:

  1. Scroll down to read older messages
  2. Focus on one message in particular (message X)
  3. Using another account, write new message in the same chat room

Expected behavior

  • Message X has the same background as before publication of the new message

Actual behavior

  • Message X's background has changed

Screenshots

N/A

Reproduction environment

Desktop:

  • OS: Any
  • Browser: Any
  • Version: Any

Additional context

  • Most likely caused by background applied using even or odd pseudoselectors on rows.
  • Should be fixable applying background color based on message ID's value (either even or odd).

Metadata

Metadata

Assignees

Labels

bugAll bug reportsbug:confirmedAll bug reports that were reproduced, therefore confirmed to exist

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions