From b6fa052829db684310bd3b4ea95988bcada2c9ad Mon Sep 17 00:00:00 2001 From: Kerry Archibald Date: Mon, 28 Feb 2022 17:31:35 +0100 Subject: [PATCH] fix color of location share caret Signed-off-by: Kerry Archibald --- res/css/views/location/_LocationPicker.scss | 17 ++++++++++++++++- res/css/views/messages/_MLocationBody.scss | 17 ++++++++++++++++- .../views/location/LocationPicker.tsx | 5 +---- src/components/views/messages/MLocationBody.tsx | 5 +---- 4 files changed, 34 insertions(+), 10 deletions(-) diff --git a/res/css/views/location/_LocationPicker.scss b/res/css/views/location/_LocationPicker.scss index 125b33994cc..cc0830e7cd6 100644 --- a/res/css/views/location/_LocationPicker.scss +++ b/res/css/views/location/_LocationPicker.scss @@ -58,7 +58,22 @@ limitations under the License. .mx_MLocationBody_pointer { position: absolute; bottom: -3px; - left: 12px; + left: 11px; + width: 9px; + height: 5px; + + &::before { + mask-image: url('$(res)/img/location/pointer.svg'); + mask-position: center; + mask-repeat: no-repeat; + mask-size: 9px; + content: ''; + display: inline-block; + width: 9px; + height: 5px; + position: absolute; + background-color: $accent; + } } } diff --git a/res/css/views/messages/_MLocationBody.scss b/res/css/views/messages/_MLocationBody.scss index 071c953424f..de2a3305220 100644 --- a/res/css/views/messages/_MLocationBody.scss +++ b/res/css/views/messages/_MLocationBody.scss @@ -38,7 +38,22 @@ limitations under the License. .mx_MLocationBody_pointer { position: absolute; bottom: -3px; - left: 12px; + left: 11px; + width: 9px; + height: 5px; + + &::before { + mask-image: url('$(res)/img/location/pointer.svg'); + mask-position: center; + mask-repeat: no-repeat; + mask-size: 9px; + content: ''; + display: inline-block; + width: 9px; + height: 5px; + position: absolute; + background-color: $accent; + } } .mx_MLocationBody_markerContents { diff --git a/src/components/views/location/LocationPicker.tsx b/src/components/views/location/LocationPicker.tsx index b6be4e10c89..131dbf6ad06 100644 --- a/src/components/views/location/LocationPicker.tsx +++ b/src/components/views/location/LocationPicker.tsx @@ -197,11 +197,8 @@ class LocationPicker extends React.Component { viewUserOnClick={false} /> - diff --git a/src/components/views/messages/MLocationBody.tsx b/src/components/views/messages/MLocationBody.tsx index 6c329d2c50c..5d58822bfbd 100644 --- a/src/components/views/messages/MLocationBody.tsx +++ b/src/components/views/messages/MLocationBody.tsx @@ -188,11 +188,8 @@ export function LocationBodyContent(props: ILocationBodyContentProps):
{ markerContents }
- {