Linear issues: https://linear.app/comm/issue/ENG-2547/restyle-sidebarlistmodal-and-subchannelslistmodal, https://linear.app/comm/issue/DES-20/designs-for-subchannels-modal
SidebarListModal, SubchannelsModal use ThreadListModal undeneath, and no other component uses ThreadListModal. SidebarListModal and SubchannelsModal are supposed to look consistent, and match the new designs provided in the second linked issue.
Details
Run ios simulator, saw that the two modals look as expected. Chceked that scrolling works poperly.
Diff Detail
- Repository
- rCOMM Comm
- Branch
- inka/community_drawer
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
Not sure if this is intentional, but x button seems to be shifted left. For me it would look better if the distance from the button to the right edge of the modal was the same as from the title to the left edge.
native/chat/subchannel-item.react.js | ||
---|---|---|
92 ↗ | (On Diff #20242) | |
native/chat/thread-list-modal.react.js | ||
102–104 ↗ | (On Diff #20242) | When a lambda contains only a call to one function that has the same list of parameters, it can be skipped: const f = () => { ... }; const g = () => f(); is equivalent to const g = f; So in this case it could be simplified to just const close = React.useCallback(navigation.goBack, [navigation]); But in that case the memoization isn't needed at all. |
110 ↗ | (On Diff #20242) |
I don't think this was intention of the designer. There is another screen https://www.figma.com/file/WmS4u84vnveHHCcZusn5A4/%E2%9A%A1%EF%B8%8F-Mobile-App-Sidedrawer?node-id=5867%3A35597&t=DDA32ZBjU7mH2PZC-0 where the button is in a different place, so I guess the placement is random.
Okay, here are some options then:
Here's how it looks with 'x' having the same right margin as the left margin of the title (margin 2 + 16 of header padding):
And here when the title is shifted to match the 'x' (margin 16 + 16 of header padding):
And here when the margins are 8 (margin 8 + 16 of header padding):
For me the 1st option looks the best as the margin of header is consistent with other elements.