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

Apply the same max-width to image tile on the thread timeline as message bubble #8669

Merged
merged 2 commits into from
May 25, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions res/css/views/rooms/_EventBubbleTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,8 @@ limitations under the License.
.mx_DisambiguatedProfile,
.mx_EventTile_line {
width: fit-content;
max-width: 70%;
// fixed line height to prevent emoji from being taller than text
line-height: $font-18px;
max-width: var(--EventBubbleTile_line-max-width);
line-height: $font-18px; // fixed line height to prevent emoji from being taller than text
}

// other users profile on bubble layout
Expand Down Expand Up @@ -262,6 +261,7 @@ limitations under the License.

.mx_EventTile_line {
--EventBubbleTile_line-margin-inline-end: -12px;
--EventBubbleTile_line-max-width: 70%;

position: relative;
display: flex;
Expand Down
5 changes: 3 additions & 2 deletions res/css/views/rooms/_EventTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -886,8 +886,9 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
margin-inline-end: var(--BaseCard_EventTile-spacing-horizontal);

.mx_EventTile_line.mx_EventTile_mediaLine {
padding: 0;
max-width: 100%;
padding-block: 0;
padding-inline-start: 0;
max-width: var(--EventBubbleTile_line-max-width);

.mx_MFileBody {
width: 100%;
Expand Down