Page MenuHomePhabricator

[native] Disable typeahead and media buttons in edit mode
ClosedPublic

Authored by kuba on Apr 14 2023, 1:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 5, 8:11 AM
Unknown Object (File)
Tue, Nov 5, 4:26 AM
Unknown Object (File)
Sep 28 2024, 6:29 AM
Unknown Object (File)
Sep 28 2024, 6:29 AM
Unknown Object (File)
Sep 28 2024, 6:29 AM
Unknown Object (File)
Sep 28 2024, 6:22 AM
Unknown Object (File)
Sep 14 2024, 2:54 PM
Unknown Object (File)
Sep 14 2024, 1:21 AM
Subscribers

Details

Summary

We don't want to display typeahead and media buttons in edit mode.

Test Plan

Run the app. Entered exit mode. Checked if the media buttons disappeared, and if typeahead tooltip wasn't showing. Exited edit mode. Checked if everything appeared again.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

native/chat/chat-input-bar.react.js
634–636

can you instead make the expandoButton null if this.isEditMode() or !this.state.buttonsExpanded ?
Like we do with statusBar in most places.
This will also get rid of {this.state.buttonsExpanded ? expandoButton : null} from JSX.

native/chat/chat-input-bar.react.js
634–636

If I use display: 'none', the margin from the left side is automatically set. In that case we have exactly the same margin from the left as there would be the arrow. As we discussed yesterday in the office, I asked Ted about the paddings on Figma.

native/chat/chat-input-bar.react.js
634–636
This revision is now accepted and ready to land.Apr 20 2023, 7:38 AM