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

Commit

Permalink
Adjust EditMessageComposer style declarations (#8631)
Browse files Browse the repository at this point in the history
  • Loading branch information
luixxiul committed May 17, 2022
1 parent 6ffd12a commit 9889aa0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
12 changes: 7 additions & 5 deletions res/css/views/rooms/_EditMessageComposer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ limitations under the License.
.mx_EditMessageComposer {
display: flex;
flex-direction: column;
max-width: 100%; // disable overflow
width: auto;
gap: 5px;
padding: 3px;

// Make sure the formatting bar is visible
overflow: visible !important; // override mx_EventTile_content

.mx_BasicMessageComposer_input {
border-radius: 4px;
border: solid 1px $primary-hairline-color;
Expand All @@ -38,12 +37,15 @@ limitations under the License.

.mx_EditMessageComposer_buttons {
display: flex;
flex-direction: row;
flex-flow: row wrap-reverse; // display "Save" over "Cancel"
justify-content: flex-end;
gap: 5px;
margin-inline-start: auto;

.mx_AccessibleButton {
padding: 5px 40px;
flex: 1;
box-sizing: border-box;
min-width: 100px; // magic number to align the edge of the button with the input area
}
}
}
7 changes: 7 additions & 0 deletions res/css/views/rooms/_EventTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
mask-image: url('$(res)/img/element-icons/circle-sending.svg');
}

.mx_EventTile_content {
&.mx_EditMessageComposer {
// Make sure the formatting bar is visible
overflow: visible;
}
}

&[data-layout=group] {
.mx_EventTile_line {
line-height: var(--GroupLayout-EventTile-line-height);
Expand Down

0 comments on commit 9889aa0

Please sign in to comment.