Make the reply preview not an overlay on the timeline anymore

As users can't scroll down all the way down to the timeline like this to
see the last message (and perhaps adjust their reply to it)

This also remove the wrapper div as it is not needed anymore
This commit is contained in:
Bruno Windels 2020-07-31 13:47:40 +02:00
parent 76293970f4
commit 01d624fdaf
3 changed files with 1 additions and 12 deletions

View file

@ -15,10 +15,6 @@ limitations under the License.
*/
.mx_ReplyPreview {
position: absolute;
bottom: 0;
z-index: 1000;
width: 100%;
border: 1px solid $primary-hairline-color;
background: $primary-bg-color;
border-bottom: none;

View file

@ -44,10 +44,5 @@ limitations under the License.
overflow-y: auto;
}
}
.mx_SendMessageComposer_overlayWrapper {
position: relative;
height: 0;
}
}

View file

@ -444,9 +444,7 @@ export default class SendMessageComposer extends React.Component {
render() {
return (
<div className="mx_SendMessageComposer" onClick={this.focusComposer} onKeyDown={this._onKeyDown}>
<div className="mx_SendMessageComposer_overlayWrapper">
<ReplyPreview permalinkCreator={this.props.permalinkCreator} />
</div>
<ReplyPreview permalinkCreator={this.props.permalinkCreator} />
<BasicMessageComposer
ref={this._setEditorRef}
model={this.model}