mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-25 23:13:42 +00:00
refine preset grid layout.
This commit is contained in:
@@ -806,12 +806,15 @@ a.selected:hover .toggle.icon { background-position: -40px -180px;}
|
||||
}
|
||||
|
||||
.subgrid {
|
||||
width: -webkit-calc(100% - 10px);
|
||||
width: calc(100% - 10px);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.subgrid .preset-grid {
|
||||
background: #eee;
|
||||
margin-top: 0px;
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
|
||||
@@ -120,11 +120,9 @@ iD.ui.PresetGrid = function(context, entity) {
|
||||
.call(drawGrid, 1000);
|
||||
|
||||
subgrid.style('max-height', '0px')
|
||||
.style('padding-top', '0px')
|
||||
.style('padding-bottom', '0px')
|
||||
.transition()
|
||||
.duration(300)
|
||||
.style('padding-top', '10px')
|
||||
.style('padding-bottom', '20px')
|
||||
.style('max-height', (d.members.collection.length / 3 * 150) + 200 + 'px');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user