mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
fix display of preset description
This commit is contained in:
@@ -1475,6 +1475,7 @@ img.wiki-image {
|
||||
width: -webkit-calc(33.3333% - 10px);
|
||||
width: calc(33.3333% - 10px);
|
||||
margin-left: 20px;
|
||||
margin-right: 10px;
|
||||
border-radius: 4px;
|
||||
max-height: 200px;
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ iD.ui.PresetGrid = function(context, entity) {
|
||||
.transition()
|
||||
.duration(300)
|
||||
.style('padding-bottom', '20px')
|
||||
.style('max-height', (d.members.collection.length / 3 * 150) + 200 + 'px');
|
||||
.style('max-height', (d.members.collection.length * 80) + 200 + 'px');
|
||||
}
|
||||
|
||||
// Preset
|
||||
@@ -170,7 +170,7 @@ iD.ui.PresetGrid = function(context, entity) {
|
||||
grid.node().insertBefore(elem, grid.node().childNodes[index + 1]);
|
||||
|
||||
var newbox = d3.select(elem)
|
||||
.attr('class', 'col12 box-insert ' + klass + ' arrow')
|
||||
.attr('class', 'col12 box-insert ' + klass)
|
||||
.datum(entity);
|
||||
|
||||
return newbox;
|
||||
|
||||
Reference in New Issue
Block a user