Fix for If riot is narrow enough, such that 'Send a message (unecrypted)' wraps to a second line, the timeline doesn't fit the window.#5900
Conversation
…so include DraftEditorPlaceholder. Could fix element-hq#4821
|
Having tested this, it seems to work, but unfortunately does still reintroduce #4652. The reason for this is (I think) that the DOM element that does the scrolling when it gets too thin has changed from being In order to fix this, you may also need to edit this line: matrix-org/matrix-react-sdk@7e0fecb#diff-fa2e6c7a24d3ee8c284aa720b8f399edR466 such that the editor root is scrolled to the bottom instead of the editor content. |
|
Thanks @lukebarnard1, And it seems to work. Will do another pull request against matrix-react-sdk for that. Not sure what to do with the long line, maybe needs some refactor. |
|
(updated comment to correct PR ref) |
Make scroll on paste in RTE compatible with element-hq/element-web#5900
Problem was, that max-height/width and overflow was first set in
.public-DraftEditor-contentbut we need it already before in.DraftEditor-rootto also cover.public-DraftEditorPlaceholder-innerwhich holds the "The message is unencrypted..." text.Fixes #4821
Last fix (PR: #5331) unfortunatly reintroduced #4652, for me multiline pasting works with this fix, but should be further tested.