HomePhabricator
Diffusion Comm e88bb4c1762d

[web] update calculateMaxTextWidth to consider different font sizes

Description

[web] update calculateMaxTextWidth to consider different font sizes

Summary:
Our reaction tooltip has texts with two different font sizes (see image below for context) to accommodate for this I updated calculateMaxTextWidth to consider different font sizes so that we can use this function when we introduce the reaction tooltip

Screenshot 2023-08-16 at 3.25.58 AM.png (306×316 px, 24 KB)

Depends on D8829

Test Plan: flow and confirmed that the result of calculateMaxTextWidth was the same before and after the changes

Reviewers: atul, kamil

Reviewed By: kamil

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D8831

Details

Provenance
ginsuAuthored on Aug 15 2023, 11:26 PM
Reviewer
kamil
Differential Revision
D8831: [web] update calculateMaxTextWidth to consider different font sizes
Parents
rCOMM037b2664951a: [web] introduce useTooltip hook
Branches
Unknown
Tags
Unknown