Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Create narrow mode for Composer #6682

Merged
merged 16 commits into from
Sep 7, 2021
Prev Previous commit
Next Next commit
Hide voice recording button in narrow mode
  • Loading branch information
Germain Souquet committed Aug 27, 2021
commit a1f6708a566bda86b3c0b3a7f7c3a95e6a80a6a8
2 changes: 1 addition & 1 deletion src/components/views/rooms/MessageComposer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ export default class MessageComposer extends React.Component<IProps, IState> {
title={this.state.showStickers ? _t("Hide Stickers") : _t("Show Stickers")}
/>);
}
if (!this.state.haveRecording) {
if (!this.state.haveRecording && !this.state.narrowMode) {
buttons.push(
<AccessibleTooltipButton
className="mx_MessageComposer_button mx_MessageComposer_voiceMessage"
Expand Down