discourse/plugins/discourse-presence
Kris 791908bf7b
DEV: unify presence avatar size to make layout shift less likely (#33844)
Concerns the presence indicator at the bottom of topics, "replying..."
seen here:

<img width="294" height="198" alt="image"
src="https://github.com/user-attachments/assets/3997ecee-eacd-4cf7-9754-4306434da1bc"
/>
 
 
Previously we've had cases where the min-height of this element had
regressed and ends up causing unwanted layout shift on appearance. (See
https://github.com/discourse/discourse/pull/33022)

Rather than relying on having the correct magic number here, I've
centralized the avatar size in a variable. This then gets translated to
a CSS variable and also passed to the component that renders the avatar.

This ensures that `min-height: calc(var(--avatar-min-height) + 1px);`
will be larger than the avatar and we won't have to worry about our CSS
falling out of sync.
2025-07-24 17:18:06 -04:00
..
assets DEV: unify presence avatar size to make layout shift less likely (#33844) 2025-07-24 17:18:06 -04:00
config Update translations 2025-01-07 21:56:56 +01:00
spec/integration DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
test/javascripts/acceptance FIX: load saved draft when clicking reply to post (#33543) 2025-07-15 13:32:31 +04:00
plugin.rb UX: show all preinstalled plugins and label them as such (#33681) 2025-07-17 15:11:52 -04:00
README.md DEV: Update discourse-presence plugin to use new PresenceChannel system (#14519) 2021-10-21 12:42:46 +01:00

Discourse Presence plugin

This plugin shows which users are currently writing a reply at the same time as you.