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

fix color of location share caret #7917

Merged
merged 2 commits into from
Mar 1, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
17 changes: 16 additions & 1 deletion res/css/views/location/_LocationPicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down
17 changes: 16 additions & 1 deletion res/css/views/messages/_MLocationBody.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 1 addition & 4 deletions src/components/views/location/LocationPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,8 @@ class LocationPicker extends React.Component<IProps, IState> {
viewUserOnClick={false}
/>
</div>
<img
<div
className="mx_MLocationBody_pointer"
src={require("../../../../res/img/location/pointer.svg")}
width="9"
height="5"
/>
</div>
</div>
Expand Down
5 changes: 1 addition & 4 deletions src/components/views/messages/MLocationBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,8 @@ export function LocationBodyContent(props: ILocationBodyContentProps):
<div className="mx_MLocationBody_markerBorder">
{ markerContents }
</div>
<img
<div
className="mx_MLocationBody_pointer"
src={require("../../../../res/img/location/pointer.svg")}
width="9"
height="5"
/>
</div>
{
Expand Down