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

Set max-width for MLocationBody and MLocationBody_map by default #8519

Merged
merged 1 commit into from
May 6, 2022
Merged
Changes from all commits
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
13 changes: 6 additions & 7 deletions res/css/views/messages/_MLocationBody.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ limitations under the License.
*/

.mx_MLocationBody {
max-width: 100%;

.mx_MLocationBody_map {
max-width: 100%;
width: 450px;
height: 300px;
z-index: 0; // keeps the entire map under the message action bar
Expand All @@ -27,15 +30,11 @@ limitations under the License.

/* In the timeline, we fit the width of the container */
.mx_EventTile_line .mx_MLocationBody .mx_MLocationBody_map {
width: 100%;
max-width: 450px;
width: 100%;
}

.mx_EventTile[data-layout="bubble"] .mx_EventTile_line .mx_MLocationBody {
.mx_EventTile[data-layout="bubble"] .mx_EventTile_line .mx_MLocationBody .mx_MLocationBody_map {
max-width: 100%;

.mx_MLocationBody_map {
max-width: 100%;
width: 450px;
}
width: 450px;
}