mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
Better fit for 60px preset icons inside area frame
(e.g. pedestrian street mapped as area)
This commit is contained in:
+12
@@ -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;
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user