mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 21:48:20 +02:00
Animate expand fix menus
This commit is contained in:
+10
-1
@@ -3026,7 +3026,16 @@ ul.issue-fix-list li:not(:last-of-type) {
|
||||
border-bottom-width: 1px;
|
||||
}
|
||||
.issue:not(.expanded) ul.issue-fix-list {
|
||||
display: none;
|
||||
height: 0px;
|
||||
transition: height 75ms linear;
|
||||
-moz-transition: height 75ms linear;
|
||||
-webkit-transition: height 75ms linear;
|
||||
}
|
||||
.issue.expanded ul.issue-fix-list {
|
||||
height: 100%;
|
||||
transition: height 75ms linear;
|
||||
-moz-transition: height 75ms linear;
|
||||
-webkit-transition: height 75ms linear;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -74,7 +74,8 @@ export function uiEntityIssues(context) {
|
||||
})
|
||||
.on('click', function(d, i) {
|
||||
_expanded = i; // expand only the clicked item
|
||||
items.classed('expanded', function(d, i) { return i === _expanded; });
|
||||
selection.selectAll('.issue')
|
||||
.classed('expanded', function(d, i) { return i === _expanded; });
|
||||
|
||||
var loc = d.loc();
|
||||
if (loc) {
|
||||
|
||||
Reference in New Issue
Block a user