Skip to content

Commit

Permalink
Merge pull request #686 from geoadmin/feat-PB-244-coordinate-display-…
Browse files Browse the repository at this point in the history
…css-styling-and-text-selectability

PB-244: Coordinate display css styling and text selectability
  • Loading branch information
ltshb authored Mar 7, 2024
2 parents 02c08ab + c3975eb commit 1008b1a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/modules/infobox/components/FeatureDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function sanitizeHtml(htmlText) {
:value="feature.geometry.coordinates.slice(0, 2)"
:coordinate-format="coordinateFormat"
>
<FontAwesomeIcon class="d-flex" icon="fas fa-map-marker-alt" />
<FontAwesomeIcon class="small align-text-top" icon="fas fa-map-marker-alt" />
</CoordinateCopySlot>
</div>
</div>
Expand Down
7 changes: 2 additions & 5 deletions src/modules/infobox/components/styling/FeatureStyleEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -224,16 +224,13 @@ function onDelete() {
<sup>2</sup>
</div>
</div>
<div
v-if="isFeatureMarker || isFeatureText"
class="d-flex small gap-1 justify-content-start align-items-center"
>
<div v-if="isFeatureMarker || isFeatureText" class="d-flex small justify-content-start">
<CoordinateCopySlot
identifier="feature-style-edit-coordinate-copy"
:value="feature.coordinates[0].slice(0, 2)"
:coordinate-format="coordinateFormat"
>
<FontAwesomeIcon class="d-flex small" icon="fas fa-map-marker-alt" />
<FontAwesomeIcon class="small pe-2 align-text-top" icon="fas fa-map-marker-alt" />
</CoordinateCopySlot>
</div>
<div class="d-flex justify-content-end align-items-center">
Expand Down
3 changes: 0 additions & 3 deletions src/modules/map/components/LocationPopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,4 @@ function clearClick() {
<style lang="scss" scoped>
@import 'src/scss/webmapviewer-bootstrap-theme';
.location-popup {
@extend .clear-no-ios-long-press;
}
</style>
3 changes: 3 additions & 0 deletions src/utils/components/CoordinateCopySlot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,7 @@ async function copyValue() {
padding: 0 0.2rem;
font-size: inherit;
}
.location-popup-data {
@extend .clear-no-ios-long-press;
}
</style>

0 comments on commit 1008b1a

Please sign in to comment.