Skip to content

Commit

Permalink
Fix flex blowout on image reply (#8809)
Browse files Browse the repository at this point in the history
* Set min-width to prevent a flex blowout

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Use a native spacing property

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Set max-width: 100% to display name inside the image reply

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
  • Loading branch information
luixxiul committed Jun 10, 2022
1 parent 0d3fe30 commit 1b7e9d9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions res/css/views/messages/_MImageReplyBody.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,21 @@ limitations under the License.

.mx_MImageReplyBody {
display: flex;
column-gap: $spacing-4;

.mx_MImageBody_thumbnail_container {
.mx_MImageBody_thumbnail_container,
.mx_MImageReplyBody_info {
flex: 1;
margin-right: 4px;
min-width: 0; // Prevent a blowout
}

.mx_MImageReplyBody_info {
flex: 1;

.mx_MImageReplyBody_sender {
grid-area: sender;

.mx_DisambiguatedProfile {
max-width: 100%;
}
}

.mx_MImageReplyBody_filename {
Expand Down

0 comments on commit 1b7e9d9

Please sign in to comment.