FIX: adds negative skidding to popper offset (#19958)

Learn more about skidding here: https://popper.js.org/docs/v2/modifiers/offset/#skidding-1

This change has two goals:
- Fixes an issue when the user had zoomed the viewport and the popper would position on the opposite side
- Makes msg actions arguably more pleasant to the eye by preventing it to be right aligned with the message container
This commit is contained in:
Joffrey JAFFEUX
2023-01-23 22:04:14 +01:00
committed by GitHub
parent 87316d7a10
commit ad70a72de9

View File

@@ -33,7 +33,7 @@ export default Component.extend({
{ name: "eventListeners", options: { scroll: false } },
{
name: "offset",
options: { offset: [0, MSG_ACTIONS_VERTICAL_PADDING] },
options: { offset: [-2, MSG_ACTIONS_VERTICAL_PADDING] },
},
],
}