fix display of preset description

This commit is contained in:
Ansis Brammanis
2013-04-26 15:35:27 -04:00
parent 2355dc228d
commit c02bafac2e
2 changed files with 3 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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;