Page MenuHomePhabricator

[native] add spacing in between each reaction pill
ClosedPublic

Authored by ginsu on Jul 19 2023, 2:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 28, 8:57 AM
Unknown Object (File)
Sat, Sep 28, 8:57 AM
Unknown Object (File)
Sat, Sep 28, 8:57 AM
Unknown Object (File)
Sat, Sep 28, 8:57 AM
Unknown Object (File)
Sat, Sep 28, 8:57 AM
Unknown Object (File)
Sat, Sep 28, 8:57 AM
Unknown Object (File)
Sat, Sep 28, 8:56 AM
Unknown Object (File)
Sat, Sep 28, 8:52 AM
Subscribers

Details

Summary

After separating out each reaction into its own pill, the next step to improve this experience is to add spacing to each reaction pill. This diff adds a margin either to left or right of the reaction pill depending on whether the positioning of the InlineEngagement isRight or not

Depends on D8539

Test Plan

Please see the screenshots below

Before:

Screenshot 2023-07-18 at 1.08.13 AM.png (1×1 px, 927 KB)

Screenshot 2023-07-18 at 1.07.48 AM.png (1×1 px, 854 KB)

After:

Screenshot 2023-07-19 at 5.09.42 PM.png (1×1 px, 927 KB)

Screenshot 2023-07-19 at 5.10.11 PM.png (1×1 px, 862 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

switch sidebarMargin and reactionsMargin to sidebarStyle and reactionStyle

ginsu requested review of this revision.Jul 19 2023, 2:42 PM
kamil added inline comments.
native/chat/inline-engagement.react.js
87 ↗(On Diff #28862)

array suggests multiple elements

This revision is now accepted and ready to land.Jul 21 2023, 2:53 AM
native/chat/inline-engagement.react.js
87 ↗(On Diff #28862)

I can't use styles because styles is already declared in the upper scope, but how about stylesResult?

forgot to fix reactionStyle

This revision was landed with ongoing or failed builds.Jul 31 2023, 1:19 PM
This revision was automatically updated to reflect the committed changes.