From dcafad99a7ff392eabfab4746e35b8b50be36b9b Mon Sep 17 00:00:00 2001 From: Kosta Korenkov <7r0ggy@gmail.com> Date: Tue, 1 Sep 2015 06:52:54 +0300 Subject: [PATCH] Fix empty space in menu bar with one addon --- public/views/includes/menu-item.html | 9 +++++++++ public/views/includes/menu.html | 27 ++++++++++----------------- src/js/controllers/index.js | 2 +- 3 files changed, 20 insertions(+), 18 deletions(-) create mode 100644 public/views/includes/menu-item.html diff --git a/public/views/includes/menu-item.html b/public/views/includes/menu-item.html new file mode 100644 index 000000000..9ba10dec2 --- /dev/null +++ b/public/views/includes/menu-item.html @@ -0,0 +1,9 @@ + + +
+ {{ item.title|translate }} + + {{ index.pendingTxProposalsCountForUs }} + +
+
\ No newline at end of file diff --git a/public/views/includes/menu.html b/public/views/includes/menu.html index 451f67074..0a5ae5570 100644 --- a/public/views/includes/menu.html +++ b/public/views/includes/menu.html @@ -1,11 +1,6 @@
- - -
- {{item.title|translate}} -
-
+
@@ -15,23 +10,21 @@
-
- - - diff --git a/src/js/controllers/index.js b/src/js/controllers/index.js index 94cdb70b5..676ce7cb9 100644 --- a/src/js/controllers/index.js +++ b/src/js/controllers/index.js @@ -34,7 +34,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r self.addonViews = addonManager.addonViews(); self.menu = self.menu.concat(addonManager.addonMenuItems()); - self.menuItemSize = self.menu.length > 4 ? 2 : 3; + self.menuItemSize = self.menu.length > 5 ? 2 : 3; self.tab = 'walletHome';