Skip to content

Commit

Permalink
Fixed position of the badge in the list header
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Pastoor committed Apr 13, 2016
1 parent 2eb6c00 commit 1fc9757
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/scrummer.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
position: relative;
}

.scrummer-list-points {
float: left;
}

textarea.mod-list-name.list-header-name {
float: left;
width: 80%;
margin: -3px -2px;
}

.scrummer-picker-container {
margin: 15px 0 15px;
}
Expand Down
4 changes: 2 additions & 2 deletions src/scrummer.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,12 @@ var calculateStoryPointsForList = function (list) {
}
}

var listHeader = list.querySelector('.list-header-name-assist');
var listHeader = list.querySelector('.js-list-header');
var badgeElement = listHeader.querySelector('.scrummer-list-points');
if (!badgeElement) {
badgeElement = document.createElement('span');
badgeElement.className = 'scrummer-list-points';
listHeader.insertBefore(badgeElement, listHeader.firstChild);
listHeader.insertBefore(badgeElement, listHeader.querySelector('.js-list-name-input'))
}

badgeElement.textContent = listPoints;
Expand Down

0 comments on commit 1fc9757

Please sign in to comment.