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

Commit

Permalink
Add space for the stroke on message editor on IRC layout (#9030)
Browse files Browse the repository at this point in the history
Signed-off-by: Suguru Hirahara <[email protected]>
  • Loading branch information
luixxiul authored Jul 11, 2022
1 parent 3abf8a1 commit 2587aa1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion res/css/views/rooms/_EditMessageComposer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ limitations under the License.
*/

.mx_EditMessageComposer {
--EditMessageComposer-padding-inline: 3px;

display: flex;
flex-direction: column;
max-width: 100%; // disable overflow
width: auto;
gap: 5px;
padding: 3px;
padding: 3px var(--EditMessageComposer-padding-inline);

.mx_BasicMessageComposer_input {
border-radius: 4px;
Expand Down
7 changes: 7 additions & 0 deletions res/css/views/rooms/_EventTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,13 @@ $left-gutter: 64px;
.mx_ReplyTile .mx_EventTileBubble {
left: unset; // Cancel the value specified above for the tile inside ReplyTile
}

&.mx_EventTile_isEditing > .mx_EventTile_line {
.mx_EditMessageComposer {
// add space for the stroke on box-shadow
padding-inline-start: calc($selected-message-border-width + var(--EditMessageComposer-padding-inline));
}
}
}

&[data-layout=group] {
Expand Down

0 comments on commit 2587aa1

Please sign in to comment.