mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 15:34:49 +02:00
Adjust styles, constrain tooltip to fit in map-control panel
This commit is contained in:
+6
-8
@@ -1809,18 +1809,16 @@ div.full-screen > button:hover {
|
||||
background: #E8EBFF;
|
||||
}
|
||||
|
||||
.layer-list li.best > div {
|
||||
.layer-list li.best > div.best {
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
width: 10%;
|
||||
padding: 5px 0;
|
||||
padding: 5px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.layer-list li.best > div > span {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
/* make sure tooltip fits in map-control panel */
|
||||
/* if too wide, placement will be wrong the first time it displays */
|
||||
.layer-list li.best .tooltip-inner {
|
||||
max-width: 160px;
|
||||
}
|
||||
|
||||
.layer-list label {
|
||||
|
||||
@@ -103,11 +103,12 @@ iD.ui.Background = function(context) {
|
||||
|
||||
enter.filter(function(d) { return d.best(); })
|
||||
.append('div')
|
||||
.attr('class', 'best')
|
||||
.call(bootstrap.tooltip()
|
||||
.title(t('background.best_imagery'))
|
||||
.placement('left'))
|
||||
.append('span')
|
||||
.html(' ★');
|
||||
.html('★');
|
||||
|
||||
var label = enter.append('label');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user