From 71521f34289242546d7960cd49242af618b3d28c Mon Sep 17 00:00:00 2001 From: Athou Date: Thu, 28 Nov 2013 10:45:10 +0100 Subject: [PATCH] fix mobile layout --- src/main/webapp/js/controllers.js | 18 +++++++++++++++--- src/main/webapp/sass/generic/_misc.scss | 1 - src/main/webapp/sass/mobile/_mobile.scss | 15 ++++++++++----- src/main/webapp/templates/_tree.html | 4 ++-- 4 files changed, 27 insertions(+), 11 deletions(-) diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index 3746915b..6a6cecf4 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -110,14 +110,26 @@ module.controller('ImportCtrl', ['$scope', '$location', 'FeedService', 'Category }; }]); -module.controller('CategoryTreeCtrl', ['$scope', '$timeout', '$stateParams', '$window', '$location', '$state', '$route', 'CategoryService', - 'AnalyticsService', 'EntryService', - function($scope, $timeout, $stateParams, $window, $location, $state, $route, CategoryService, AnalyticsService, EntryService) { +module.controller('CategoryTreeCtrl', [ + '$scope', + '$timeout', + '$stateParams', + '$window', + '$location', + '$state', + '$route', + 'CategoryService', + 'AnalyticsService', + 'EntryService', + 'MobileService', + function($scope, $timeout, $stateParams, $window, $location, $state, $route, CategoryService, AnalyticsService, EntryService, + MobileService) { $scope.selectedType = $stateParams._type; $scope.selectedId = $stateParams._id; $scope.EntryService = EntryService; + $scope.MobileService = MobileService; $scope.starred = { id : 'starred', diff --git a/src/main/webapp/sass/generic/_misc.scss b/src/main/webapp/sass/generic/_misc.scss index 79bee382..94ab6c76 100644 --- a/src/main/webapp/sass/generic/_misc.scss +++ b/src/main/webapp/sass/generic/_misc.scss @@ -3,7 +3,6 @@ margin: 0 auto; padding-right: 20px; padding-left: 20px; - padding-left: 20px; } body .modal { diff --git a/src/main/webapp/sass/mobile/_mobile.scss b/src/main/webapp/sass/mobile/_mobile.scss index de6e76d1..dee37377 100644 --- a/src/main/webapp/sass/mobile/_mobile.scss +++ b/src/main/webapp/sass/mobile/_mobile.scss @@ -3,10 +3,11 @@ html.mobile, html.tablet { padding-left: 5px; padding-right: 5px; } - .container-fluid { + .container-full { padding-left: 0; padding-right: 0; } + .left-menu { display: none !important; } @@ -34,21 +35,25 @@ html.mobile, html.tablet { margin-top: 22px; } #feed-accordion .entry-external-link { - right: 10px; + right: 15px; margin-top: -24px; } #feed-accordion .entry-heading-link { - height: 40px; + height: 52px; } #feed-accordion .entry-heading .entry-date { - right: 35px; + right: 40px; margin-top: 22px; } + #feed-accordion .entry-buttons .checkbox, #feed-accordion .entry-buttons .form-group { + display: inline-block; + } #feed-accordion .tags-panel { display: block; + margin-left: 5px; } #feed-accordion a.mark-up-to { - right: 15px; + right: 20px; margin-top: -18px; } body.left-menu-active .left-menu { diff --git a/src/main/webapp/templates/_tree.html b/src/main/webapp/templates/_tree.html index cbe2bb9d..deb57326 100644 --- a/src/main/webapp/templates/_tree.html +++ b/src/main/webapp/templates/_tree.html @@ -1,4 +1,4 @@ -
+
-
+