Add user avatar to location sharing dialog (#7520)

This commit is contained in:
Andy Balaam 2022-01-12 13:32:08 +00:00 committed by GitHub
parent 5ae166777c
commit 11c8e720b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 134 additions and 62 deletions

View file

@ -21,69 +21,96 @@ limitations under the License.
border-radius: 8px;
position: relative;
}
#mx_LocationPicker_map {
height: 100%;
border-radius: 8px;
#mx_LocationPicker_map {
height: 100%;
border-radius: 8px;
.maplibregl-ctrl.maplibregl-ctrl-group {
margin-top: 50px;
}
.maplibregl-ctrl-bottom-right {
bottom: 68px;
}
}
.mx_LocationPicker_footer {
position: absolute;
bottom: 0px;
width: 100%;
.mx_Dialog_buttons {
text-align: center;
/* Note the `button` prefix and `not()` clauses are needed to make
these selectors more specific than those in _common.scss. */
button.mx_Dialog_primary:not(.mx_Dialog_nonDialogButton):not(.mx_AccessibleButton) {
margin: 0px 0px 16px 0px;
min-width: 328px;
min-height: 48px;
.maplibregl-ctrl.maplibregl-ctrl-group {
margin-top: 50px;
}
button.mx_LocationPicker_cancelButton {
border: none;
border-radius: 12px;
.maplibregl-ctrl-bottom-right {
bottom: 68px;
}
.maplibregl-user-location-accuracy-circle {
display: none;
}
.maplibregl-user-location-dot {
display: none;
}
.mx_MLocationBody_markerBorder {
width: 31px;
height: 31px;
border-radius: 50%;
background-color: $accent;
filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.2));
.mx_BaseAvatar {
margin-top: 2px;
margin-left: 2px;
}
}
.mx_MLocationBody_pointer {
position: absolute;
top: -360px;
right: 5px;
background-color: $quinary-content;
width: 24px;
height: 24px;
padding: 0px;
color: rgba(0, 0, 0, 0);
}
button.mx_LocationPicker_cancelButton::before {
content: '';
background-color: $primary-content;
min-width: 8px;
min-height: 8px;
width: 8px;
height: 8px;
position: absolute;
margin: 4px 8px;
mask-repeat: no-repeat;
mask-size: contain;
mask-position: center;
mask-image: url('$(res)/img/cancel-small.svg');
bottom: -3px;
left: 12px;
}
}
}
.mx_LocationPicker_error {
color: red;
margin: auto;
.mx_LocationPicker_footer {
position: absolute;
bottom: 0px;
width: 100%;
.mx_Dialog_buttons {
text-align: center;
/* Note the `button` prefix and `not()` clauses are needed to make
these selectors more specific than those in _common.scss. */
button.mx_Dialog_primary:not(.mx_Dialog_nonDialogButton):not(.mx_AccessibleButton) {
margin: 0px 0px 16px 0px;
min-width: 328px;
min-height: 48px;
}
button.mx_LocationPicker_cancelButton {
border: none;
border-radius: 12px;
position: absolute;
top: -360px;
right: 5px;
background-color: $quinary-content;
width: 24px;
height: 24px;
padding: 0px;
color: rgba(0, 0, 0, 0);
}
button.mx_LocationPicker_cancelButton::before {
content: '';
background-color: $primary-content;
min-width: 8px;
min-height: 8px;
width: 8px;
height: 8px;
position: absolute;
margin: 4px 8px;
mask-repeat: no-repeat;
mask-size: contain;
mask-position: center;
mask-image: url('$(res)/img/cancel-small.svg');
}
}
}
.mx_LocationPicker_error {
color: red;
margin: auto;
}
}