Adjust EditMessageComposer style declarations (#8631)

This commit is contained in:
Suguru Hirahara 2022-05-17 17:12:13 +00:00 committed by GitHub
parent 6ffd12a027
commit 9889aa0de2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 5 deletions

View file

@ -18,12 +18,11 @@ limitations under the License.
.mx_EditMessageComposer { .mx_EditMessageComposer {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
max-width: 100%; // disable overflow
width: auto;
gap: 5px; gap: 5px;
padding: 3px; padding: 3px;
// Make sure the formatting bar is visible
overflow: visible !important; // override mx_EventTile_content
.mx_BasicMessageComposer_input { .mx_BasicMessageComposer_input {
border-radius: 4px; border-radius: 4px;
border: solid 1px $primary-hairline-color; border: solid 1px $primary-hairline-color;
@ -38,12 +37,15 @@ limitations under the License.
.mx_EditMessageComposer_buttons { .mx_EditMessageComposer_buttons {
display: flex; display: flex;
flex-direction: row; flex-flow: row wrap-reverse; // display "Save" over "Cancel"
justify-content: flex-end; justify-content: flex-end;
gap: 5px; gap: 5px;
margin-inline-start: auto;
.mx_AccessibleButton { .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
} }
} }
} }

View file

@ -51,6 +51,13 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
mask-image: url('$(res)/img/element-icons/circle-sending.svg'); 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] { &[data-layout=group] {
.mx_EventTile_line { .mx_EventTile_line {
line-height: var(--GroupLayout-EventTile-line-height); line-height: var(--GroupLayout-EventTile-line-height);