mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-21 07:46:58 +02:00
Map UI tooltips (#1654)
This commit is contained in:
@@ -140,7 +140,7 @@ iD.ui.Background = function(context) {
|
||||
var content = selection.append('div')
|
||||
.attr('class', 'fillL map-overlay content hide'),
|
||||
tooltip = bootstrap.tooltip()
|
||||
.placement('right')
|
||||
.placement('left')
|
||||
.html(true)
|
||||
.title(iD.ui.tooltipHtml(t('background.description'), key));
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ iD.ui.Geolocate = function(map) {
|
||||
.attr('title', t('geolocate.title'))
|
||||
.on('click', click)
|
||||
.call(bootstrap.tooltip()
|
||||
.placement('right'));
|
||||
.placement('left'));
|
||||
|
||||
button.append('span')
|
||||
.attr('class', 'icon geolocate light');
|
||||
|
||||
+1
-1
@@ -134,7 +134,7 @@ iD.ui.Help = function(context) {
|
||||
}
|
||||
|
||||
var tooltip = bootstrap.tooltip()
|
||||
.placement('right')
|
||||
.placement('left')
|
||||
.html(true)
|
||||
.title(iD.ui.tooltipHtml(t('help.title'), key));
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ iD.ui.Zoom = function(context) {
|
||||
.attr('class', function(d) { return d.id; })
|
||||
.on('click.editor', function(d) { d.action(); })
|
||||
.call(bootstrap.tooltip()
|
||||
.placement('right')
|
||||
.placement('left')
|
||||
.html(true)
|
||||
.title(function(d) {
|
||||
return iD.ui.tooltipHtml(d.title, d.key);
|
||||
|
||||
Reference in New Issue
Block a user