element-web/res/css/views/messages/_MImageReplyBody.scss
Suguru Hirahara 1b7e9d95da
Fix flex blowout on image reply (#8809)
* 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>
2022-06-10 12:36:17 +01:00

40 lines
1 KiB
SCSS

/*
Copyright 2020 Tulir Asokan <tulir@maunium.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
.mx_MImageReplyBody {
display: flex;
column-gap: $spacing-4;
.mx_MImageBody_thumbnail_container,
.mx_MImageReplyBody_info {
flex: 1;
min-width: 0; // Prevent a blowout
}
.mx_MImageReplyBody_info {
.mx_MImageReplyBody_sender {
grid-area: sender;
.mx_DisambiguatedProfile {
max-width: 100%;
}
}
.mx_MImageReplyBody_filename {
grid-area: filename;
}
}
}