Better fit for 60px preset icons inside area frame

(e.g. pedestrian street mapped as area)
This commit is contained in:
Bryan Housel
2016-02-06 15:00:47 -05:00
parent 83b0a8ca68
commit b1b8d25974
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -848,6 +848,18 @@ button.save.has-count .count::before {
height: 60px;
}
.preset-icon-44 {
position: absolute;
top: 9px;
left: 8px;
margin: auto;
}
.preset-icon-44 .icon {
width: 44px;
height: 44px;
}
.preset-icon-32 {
position: absolute;
top: 14px;
+1 -1
View File
@@ -55,7 +55,7 @@ iD.ui.PresetIcon = function() {
.call(iD.svg.Icon(''));
$icon
.attr('class', 'preset-icon preset-icon-' + (maki ? '32' : '60'));
.attr('class', 'preset-icon preset-icon-' + (maki ? '32' : (geom === 'area' ? '44' : '60')));
$icon.selectAll('svg')
.attr('class', function() {