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
F3388279: D8575.id29305.diff
Fri, Nov 29, 1:30 PM
F3388276: D8575.id28953.diff
Fri, Nov 29, 1:29 PM
Unknown Object (File)
Tue, Nov 26, 3:54 AM
Unknown Object (File)
Tue, Nov 26, 3:40 AM
Unknown Object (File)
Tue, Nov 26, 1:22 AM
Unknown Object (File)
Sat, Nov 23, 6:29 PM
Unknown Object (File)
Sat, Nov 23, 2:35 PM
Unknown Object (File)
Sat, Nov 23, 12:52 PM
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
Lint Not Applicable
Unit
Tests Not Applicable

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.