discourse/plugins/chat/assets
Gary Pendergast c333888e01
DEV: When chat is full page, scroll user cards with the avatar (#34556)
When a user card is rendered, there are two phases: first, where a
placeholder is created, then after the user card data is retrieved, the
data is inserted into the user card structure.

This causes an issue where, if the placeholder is too close to the
bottom of the viewport, and there's a lot of data being inserted into
the user card, then the user card will be partially rendered outside of
the viewport, resulting in odd scrolling behaviour.

To address this issue, this change makes use of float-kit's ability to
auto-update the position of the user-card. There are three relevant UX
changes from this:

- When the avatar is close to the bottom of the viewport, the
placeholder renders below the avatar, and the final user card is much
bigger, the user card will jump from being below the avatar, to above
the avatar.
- The user card follows the avatar when the chat window scrolls.
- When the avatar scrolls out of view, the user card is hidden.
2025-08-27 17:00:48 +10:00
..
javascripts DEV: When chat is full page, scroll user cards with the avatar (#34556) 2025-08-27 17:00:48 +10:00
stylesheets UX: fix cmd-k bottom padding (#34440) 2025-08-20 16:45:39 +02:00