HomePhabricator
Diffusion Comm f482e4b54785

[native] switched fixed tooltip component from a vertical layout to horizontal

Description

[native] switched fixed tooltip component from a vertical layout to horizontal

Summary:
Tooltips that have a fixed location now have a horizontal layout, don't render the triangles, and have a minWidth of the screen size with 8px of padding on each side. Also created a fixedTooltipHeight variable since the tooltip height for fixed tooltips will always be the same, and using inspector found out that the height of the new tooltip is 53px.

Screen Shot 2022-10-17 at 5.18.58 PM.png (1×1 px, 762 KB)


Depends on D5468
Linear Task: ENG-2037
Design: Figma

Test Plan:
Please review the screenshots below to see the changes I made, before and after:

Create Thread Case:

Screen Shot 2022-10-17 at 10.28.42 AM.png (1×1 px, 615 KB)

Open Thread Case:

Screen Shot 2022-10-17 at 11.15.40 AM.png (1×1 px, 634 KB)

Inspector View:

Screen Shot 2022-10-17 at 10.10.42 AM.png (1×958 px, 526 KB)

Video Demo:

Reviewers: atul, rohan, tomek

Reviewed By: atul, rohan

Subscribers: ashoat, tomek, atul, abosh

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

Details

Provenance
ginsuAuthored on Oct 17 2022, 7:23 AM
Reviewer
atul
Differential Revision
D5381: [native] switched fixed tooltip component from a vertical layout to horizontal
Parents
rCOMM76c7b716959d: [native] introduced fixed location option for tooltip toolbar
Branches
Unknown
Tags
Unknown