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

Commit 412c207

Browse files
authored
Apply the same max-width to image tile on the thread timeline as message bubble (#8669)
1 parent ef69946 commit 412c207

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

res/css/views/rooms/_EventBubbleTile.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,8 @@ limitations under the License.
112112
.mx_DisambiguatedProfile,
113113
.mx_EventTile_line {
114114
width: fit-content;
115-
max-width: 70%;
116-
// fixed line height to prevent emoji from being taller than text
117-
line-height: $font-18px;
115+
max-width: var(--EventBubbleTile_line-max-width);
116+
line-height: $font-18px; // fixed line height to prevent emoji from being taller than text
118117
}
119118

120119
// other users profile on bubble layout
@@ -265,6 +264,7 @@ limitations under the License.
265264

266265
.mx_EventTile_line {
267266
--EventBubbleTile_line-margin-inline-end: -12px;
267+
--EventBubbleTile_line-max-width: 70%;
268268

269269
position: relative;
270270
display: flex;

res/css/views/rooms/_EventTile.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,8 +901,9 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
901901
margin-inline-end: var(--BaseCard_EventTile-spacing-horizontal);
902902

903903
.mx_EventTile_line.mx_EventTile_mediaLine {
904-
padding: 0;
905-
max-width: 100%;
904+
padding-block: 0;
905+
padding-inline-start: 0;
906+
max-width: var(--EventBubbleTile_line-max-width);
906907
}
907908

908909
&[data-self=true] {

0 commit comments

Comments
 (0)