Remove the one usage of MessageTimestampTooltip in web.
Next diffs:
- Remove MessageTimestampTooltip component and associated styles.
- Display timestamp as part of MessageActionButtons component.
Differential D3567
[web] Remove `MessageTimestampTooltip` from `ChatMessageList` atul on Mar 30 2022, 10:48 AM. Authored by Tags None Referenced Files
Details Remove the one usage of MessageTimestampTooltip in web. Next diffs:
Diff Detail
Event Timeline
Comment Actions This diff was a mistake and ultimately what led to ENG-1266. In fact, there is no way to get an element that appears inside an scroll area (eg. overflow: auto) to overflow the bounds of that scroll area without using position: fixed. In other words, we can't simultaneously (a) position the tooltip relative to a message, while (b) making it possible for that tooltip to appear outside the bounds of the scroll area that contains that message. The reason we initially implemented the timestamp tooltip this way was in fact exactly because of this reason. After spending some time with @yayabosh investigating this today, the memory of initially working through this with @KatPo rushed back to me. Unfortunately I did not recall that initial work when reviewing this diff. @yayabosh is working on reintroducing this code – we will once again need to store the coordinates of where the tooltip appears in some React state, and make sure the tooltip is rendered outside the bounds of the scroll area. When we do reintroduce the code, we should make sure to document (in a code comment) *why* we're doing things this way, so that somebody doesn't come back and naively revert it again. |