From 1fc9757fd428cb9c81b335fc899900a195ac090d Mon Sep 17 00:00:00 2001 From: Rick Pastoor Date: Wed, 13 Apr 2016 22:18:35 +0200 Subject: [PATCH] Fixed position of the badge in the list header --- src/scrummer.css | 10 ++++++++++ src/scrummer.js | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/scrummer.css b/src/scrummer.css index 8929fd0..7f7738b 100644 --- a/src/scrummer.css +++ b/src/scrummer.css @@ -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; } diff --git a/src/scrummer.js b/src/scrummer.js index 0ddff38..6851193 100644 --- a/src/scrummer.js +++ b/src/scrummer.js @@ -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;