Live location sharing - open location in OpenStreetMap (PSF-1040) (#8695)
* share plain lat,lon string from beacon tooltip and list item Signed-off-by: Kerry Archibald <kerrya@element.io> * export makeMapSiteLink helper fn Signed-off-by: Kerry Archibald <kerrya@element.io> * use currentColor in external-link.svg Signed-off-by: Kerry Archibald <kerrya@element.io> * add open in openstreetmap link Signed-off-by: Kerry Archibald <kerrya@element.io> * fussy import ordering Signed-off-by: Kerry Archibald <kerrya@element.io> * fix icon color var Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
parent
12abbf4042
commit
15c2fb6b71
14 changed files with 254 additions and 31 deletions
|
@ -14,6 +14,7 @@
|
|||
@import "./components/views/beacon/_LiveTimeRemaining.scss";
|
||||
@import "./components/views/beacon/_OwnBeaconStatus.scss";
|
||||
@import "./components/views/beacon/_RoomLiveShareWarning.scss";
|
||||
@import "./components/views/beacon/_ShareLatestLocation.scss";
|
||||
@import "./components/views/beacon/_StyledLiveBeaconIcon.scss";
|
||||
@import "./components/views/location/_EnableLiveShare.scss";
|
||||
@import "./components/views/location/_LiveDurationDropdown.scss";
|
||||
|
|
|
@ -21,11 +21,6 @@ limitations under the License.
|
|||
height: 38px;
|
||||
box-sizing: content-box;
|
||||
padding-top: $spacing-8;
|
||||
|
||||
// override copyable text style to make compact
|
||||
.mx_CopyableText_copyButton {
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_BeaconStatusTooltip_inner {
|
||||
|
|
28
res/css/components/views/beacon/_ShareLatestLocation.scss
Normal file
28
res/css/components/views/beacon/_ShareLatestLocation.scss
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
Copyright 2022 The Matrix.org Foundation C.I.C.
|
||||
|
||||
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_ShareLatestLocation_icon {
|
||||
height: 13px;
|
||||
width: 13px;
|
||||
color: $secondary-content;
|
||||
}
|
||||
|
||||
.mx_ShareLatestLocation_copy {
|
||||
// override copyable text style to make compact
|
||||
.mx_CopyableText_copyButton {
|
||||
margin-left: $spacing-8 !important;
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="11" height="10" viewBox="0 0 11 10">
|
||||
<g fill="none" fill-rule="evenodd" stroke="#9E9E9E" stroke-linecap="round" stroke-linejoin="round">
|
||||
<g fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M8.5 5.5v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h3M7 .5h3v3M4.5 6L10 .5"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 304 B After Width: | Height: | Size: 309 B |
Loading…
Add table
Add a link
Reference in a new issue