diff --git a/css/80_app.css b/css/80_app.css index 530e7cf64..63861ef4f 100644 --- a/css/80_app.css +++ b/css/80_app.css @@ -2238,16 +2238,12 @@ div.combobox { width: 100%; overflow: hidden; } -.tag-reference-body .tag-reference-description { - margin: 10px 5px 0 5px; +.tag-reference-description { + margin: 10px 5px; } -.tag-reference-body a { +.tag-reference-link { display: block; } -.tag-reference-body .tag-reference-description:last-child, -.tag-reference-body a:last-child { - margin-bottom: 15px; -} .preset-list .tag-reference-body { position: relative; diff --git a/data/core.yaml b/data/core.yaml index be9e80308..c28e04da6 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -411,8 +411,6 @@ en: tooltip_note: "Center and zoom the map to focus on this note." tooltip_data: "Center and zoom the map to focus on this data." tooltip_issue: "Center and zoom the map to focus on this issue." - no_documentation_combination: There is no documentation available for this tag combination - no_documentation_key: There is no documentation available for this key show_more: Show More view_on_osm: View on openstreetmap.org view_on_keepRight: View on keepright.at @@ -425,8 +423,8 @@ en: role: Role choose: Select feature type results: "{n} results for {search}" - reference: View on OpenStreetMap Wiki - edit_reference: Edit or translate description + no_documentation_key: There is no documentation available for this key + edit_reference: "edit/translate" wiki_reference: View documentation wiki_en_reference: View documentation in English back_tooltip: Change feature diff --git a/dist/locales/en.json b/dist/locales/en.json index 6765c1b02..2535fc7ef 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -506,8 +506,6 @@ "tooltip_data": "Center and zoom the map to focus on this data.", "tooltip_issue": "Center and zoom the map to focus on this issue." }, - "no_documentation_combination": "There is no documentation available for this tag combination", - "no_documentation_key": "There is no documentation available for this key", "show_more": "Show More", "view_on_osm": "View on openstreetmap.org", "view_on_keepRight": "View on keepright.at", @@ -520,8 +518,8 @@ "role": "Role", "choose": "Select feature type", "results": "{n} results for {search}", - "reference": "View on OpenStreetMap Wiki", - "edit_reference": "Edit or translate description", + "no_documentation_key": "There is no documentation available for this key", + "edit_reference": "edit/translate", "wiki_reference": "View documentation", "wiki_en_reference": "View documentation in English", "back_tooltip": "Change feature", diff --git a/modules/ui/tag_reference.js b/modules/ui/tag_reference.js index 85567be49..c7e0ebaa3 100644 --- a/modules/ui/tag_reference.js +++ b/modules/ui/tag_reference.js @@ -123,17 +123,14 @@ export function uiTagReference(tag) { _body .append('p') .attr('class', 'tag-reference-description') - .text(docs.description || t('inspector.no_documentation_key')); - - _body + .text(docs.description || t('inspector.no_documentation_key')) .append('a') - .attr('class', 'tag-reference-link') + .attr('class', 'tag-reference-edit') .attr('target', '_blank') .attr('tabindex', -1) + .attr('title', t('inspector.edit_reference')) .attr('href', 'https://wiki.openstreetmap.org/wiki/' + docs.title) - .call(svgIcon('#iD-icon-out-link', 'inline')) - .append('span') - .text(t('inspector.edit_reference')); + .call(svgIcon('#iD-icon-edit', 'inline')); if (docs.wiki) { _body