Fix reply message truncation on 2 lines (#12929)

* Fix reply message truncation on 2 lines

* Add e2e tests for reply
This commit is contained in:
Florian Duros 2024-08-28 11:45:07 +02:00 committed by GitHub
parent ea3c5cf787
commit c6922c912e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 69 additions and 4 deletions

View file

@ -25,7 +25,7 @@ limitations under the License.
white-space: nowrap; /* Enforce 'In reply to' to be a single line */
color: $secondary-content;
transition: color ease 0.15s;
font-weight: var(--cpd-font-weight-normal);
font-weight: var(--cpd-font-weight-regular);
text-decoration: inherit;
&:hover {

View file

@ -126,7 +126,8 @@ $left-gutter: 64px;
.mx_ReplyChain--expanded {
.mx_EventTile_body {
display: block;
/* !important needed to override .mx_ReplyTile .mx_EventTile_content .mx_EventTile_body */
display: block !important;
overflow-y: scroll;
}
@ -899,7 +900,7 @@ $left-gutter: 64px;
object-fit: contain;
object-position: left top;
/* Override the default colors of the 'github-markdown-css' library
/* Override the default colors of the 'github-markdown-css' library
(#fff for light theme, #000 for dark theme) to match the inherited theme */
background-color: inherit !important;
}

View file

@ -77,6 +77,11 @@ limitations under the License.
font-size: $font-14px !important; /* Override the big emoji override */
}
// in order to keep the message on two lines, we need to make the body inline
.mx_EventTile_body {
display: inline;
}
// Hide line numbers and edited indicator
.mx_EventTile_lineNumbers,
.mx_EventTile_edited {