HomePhabricator
Diffusion Comm b8d86662dff2

[web] use context to display `Menu` action items

Description

[web] use context to display Menu action items

Summary:
Introduce rendering menu items using function provided by menu context. Thread actions menu should now have correct position.
As we need to set correct position of the content in portal, I used getBoundingClientRect react function, which calculates position of rendered element.
The position needs to be updated window resizes.

Test Plan: In web app, click on thread actions menu. It should appear in correct place and in browser's inspector it will be in the portal.

Reviewers: palys-swm, benschac, atul, ashoat

Reviewed By: palys-swm, benschac, ashoat

Subscribers: ashoat, palys-swm, Adrian, atul, karol-bisztyga, benschac

Differential Revision: https://phabricator.ashoat.com/D3377

Details

Provenance
jacekAuthored on Mar 25 2022, 5:18 AM
Reviewer
tomek
Differential Revision
D3377: [web] use context to display `Menu` action items
Parents
rCOMM2ec3adefc49d: [web] Introduce additional `Menu` styling variants
Branches
Unknown
Tags
Unknown