diff --git a/css/style.css b/css/style.css index 4d268fa7e..ce9f04c02 100644 --- a/css/style.css +++ b/css/style.css @@ -4,7 +4,16 @@ #app-navigation .app-navigation-entry-edit { height: auto; } -.board-bullet { +#app-navigation .active, +#app-navigation .active a, +#app-navigation li:hover > a, +#app-navigation li:focus > a, +#app-navigation a:focus, +#app-navigation .selected, +#app-navigation .selected a { + background-color:#fafafa; +} +#app-navigation .board-bullet { position: absolute; margin-left: 17px; margin-top: 16px; @@ -31,6 +40,7 @@ top:-40px; padding-top:40px; z-index:100; + width:100%; } #board #innerBoard { padding:10px; @@ -419,12 +429,19 @@ } #boardlist { + width:100%; + height: 100%; + overflow: scroll; } #boardlist td .board-bullet { width:30px; height:30px; - margin-top: -15px; + border: none; + border-radius: 50%; + position: relative; + cursor: pointer; + display: block; } #boardlist td { padding:10px; @@ -572,3 +589,11 @@ margin-bottom:2px; width:100%; padding-right:10px; width:100%; } + + +@media (max-width: 480px) { + /* hide board actions on mobile */ + #board-actions { + display:none !important; + } +} \ No newline at end of file diff --git a/js/controller/BoardController.js b/js/controller/BoardController.js index 1effcfdf9..24dcdaf9c 100644 --- a/js/controller/BoardController.js +++ b/js/controller/BoardController.js @@ -157,7 +157,7 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St CardService.update(card); CardService.reorder(card, order).then(function(data) { - StackService.data[newStack].cards = data; + StackService.data[newStack].addCard(card); }); }, orderChanged: function (event) { diff --git a/js/controller/CardController.js b/js/controller/CardController.js index 3f28e7948..7c416d347 100644 --- a/js/controller/CardController.js +++ b/js/controller/CardController.js @@ -38,8 +38,9 @@ app.controller('CardController', function ($scope, $rootScope, $routeParams, $lo } $scope.labelAssign = function(element, model) { - CardService.assignLabel($scope.cardId, element.id) - + CardService.assignLabel($scope.cardId, element.id); + var card = CardService.getCurrent(); + StackService.updateCard(card); } $scope.labelRemove = function(element, model) { CardService.removeLabel($scope.cardId, element.id) diff --git a/js/public/app.js b/js/public/app.js index ef4e3855d..50addcfd2 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -259,7 +259,7 @@ app.controller('BoardController', ["$rootScope", "$scope", "$stateParams", "Stat CardService.update(card); CardService.reorder(card, order).then(function(data) { - StackService.data[newStack].cards = data; + StackService.data[newStack].addCard(card); }); }, orderChanged: function (event) { @@ -334,8 +334,9 @@ app.controller('CardController', ["$scope", "$rootScope", "$routeParams", "$loca } $scope.labelAssign = function(element, model) { - CardService.assignLabel($scope.cardId, element.id) - + CardService.assignLabel($scope.cardId, element.id); + var card = CardService.getCurrent(); + StackService.updateCard(card); } $scope.labelRemove = function(element, model) { CardService.removeLabel($scope.cardId, element.id) diff --git a/templates/part.boardlist.php b/templates/part.boardlist.php index d3721bd87..1da869620 100644 --- a/templates/part.boardlist.php +++ b/templates/part.boardlist.php @@ -17,11 +17,7 @@ {{ b.title }}
-
D
-
E
-
C
-
K
-
+
+
diff --git a/templates/part.card.php b/templates/part.card.php index 324e7d081..42a103579 100644 --- a/templates/part.card.php +++ b/templates/part.card.php @@ -22,7 +22,7 @@ by {{ cardservice.getCurrent().owner }} - {{$item.title}}