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

Commit 1b7e9d9

Browse files
authored
Fix flex blowout on image reply (#8809)
* Set min-width to prevent a flex blowout Signed-off-by: Suguru Hirahara <[email protected]> * Use a native spacing property Signed-off-by: Suguru Hirahara <[email protected]> * Set max-width: 100% to display name inside the image reply Signed-off-by: Suguru Hirahara <[email protected]>
1 parent 0d3fe30 commit 1b7e9d9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

res/css/views/messages/_MImageReplyBody.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,21 @@ limitations under the License.
1616

1717
.mx_MImageReplyBody {
1818
display: flex;
19+
column-gap: $spacing-4;
1920

20-
.mx_MImageBody_thumbnail_container {
21+
.mx_MImageBody_thumbnail_container,
22+
.mx_MImageReplyBody_info {
2123
flex: 1;
22-
margin-right: 4px;
24+
min-width: 0; // Prevent a blowout
2325
}
2426

2527
.mx_MImageReplyBody_info {
26-
flex: 1;
27-
2828
.mx_MImageReplyBody_sender {
2929
grid-area: sender;
30+
31+
.mx_DisambiguatedProfile {
32+
max-width: 100%;
33+
}
3034
}
3135

3236
.mx_MImageReplyBody_filename {

0 commit comments

Comments
 (0)