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

Commit 4bfb1e7

Browse files
authored
Make autocomplete pop-up wider in thread view (#9289)
* Make autocomplete pop-up wider in thread view * Handle non-narrow mode too
1 parent a0c35d0 commit 4bfb1e7

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

res/css/views/right_panel/_ThreadPanel.pcss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ limitations under the License.
8484
.mx_MessageComposer_sendMessage {
8585
margin-right: 0;
8686
}
87+
88+
// Make use of the space above the composer buttons too
89+
.mx_Autocomplete {
90+
width: calc(100% + 140px);
91+
}
92+
&.mx_ThreadView_narrow .mx_Autocomplete {
93+
width: calc(100% + 108px);
94+
}
8795
}
8896

8997
.mx_RoomView_messagePanel { /* To avoid the rule from being applied to .mx_ThreadPanel_empty */

src/components/structures/ThreadView.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { TimelineWindow } from 'matrix-js-sdk/src/timeline-window';
2222
import { Direction } from 'matrix-js-sdk/src/models/event-timeline';
2323
import { IRelationsRequestOpts } from 'matrix-js-sdk/src/@types/requests';
2424
import { logger } from 'matrix-js-sdk/src/logger';
25+
import classNames from 'classnames';
2526

2627
import BaseCard from "../views/right_panel/BaseCard";
2728
import { RightPanelPhases } from "../../stores/right-panel/RightPanelStorePhases";
@@ -366,7 +367,9 @@ export default class ThreadView extends React.Component<IProps, IState> {
366367
narrow: this.state.narrow,
367368
}}>
368369
<BaseCard
369-
className="mx_ThreadView mx_ThreadPanel"
370+
className={classNames("mx_ThreadView mx_ThreadPanel", {
371+
mx_ThreadView_narrow: this.state.narrow,
372+
})}
370373
onClose={this.props.onClose}
371374
withoutScrollContainer={true}
372375
header={this.renderThreadViewHeader()}

0 commit comments

Comments
 (0)