Page MenuHomePhabricator

[native] [refactor] [ENG-530] refactor container margin bottom if statement
ClosedPublic

Authored by benschac on May 10 2022, 10:36 AM.
Tags
None
Referenced Files
F5085841: D3997.id12526.diff
Sat, Mar 29, 5:31 PM
Unknown Object (File)
Wed, Mar 19, 7:49 PM
Unknown Object (File)
Mon, Mar 10, 5:06 AM
Unknown Object (File)
Tue, Mar 4, 3:40 AM
Unknown Object (File)
Feb 20 2025, 5:39 AM
Unknown Object (File)
Feb 20 2025, 5:39 AM
Unknown Object (File)
Feb 20 2025, 5:39 AM
Unknown Object (File)
Feb 20 2025, 5:38 AM

Details

Summary

use if else syntax the that's used project wide.

before:

image.png (320×566 px, 28 KB)

after:

image.png (320×470 px, 28 KB)

Test Plan

Cluster margin should work as expected in chat view.

Diff Detail

Repository
rCOMM Comm
Branch
inline-sidebar-web-and-native-ENG-530
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

native/chat/composed-message.react.js
78 ↗(On Diff #12525)

Additionally, I need to add another condition in here and using an if else is easier to read here.

[native] [fix] [ENG-1123] update chat bubble design

tomek requested changes to this revision.May 11 2022, 5:46 AM

This is not only a refactor, but it also changes the logic. In the previous version, when item.endsCluster then marginBottom: 5 + clusterEndHeight, but now marginBottom: clusterEndHeight. Is that intentional?

This revision now requires changes to proceed.May 11 2022, 5:46 AM
In D3997#112145, @palys-swm wrote:

This is not only a refactor, but it also changes the logic. In the previous version, when item.endsCluster then marginBottom: 5 + clusterEndHeight, but now marginBottom: clusterEndHeight. Is that intentional?

You're right, thanks for catching this.

This revision is now accepted and ready to land.May 11 2022, 6:08 AM