mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
better mobile layout
This commit is contained in:
@@ -13,10 +13,14 @@ module.service('AnalyticsService', [ '$state', function($state) {
|
||||
} ]);
|
||||
|
||||
module.service('MobileService', [ '$state', function($state) {
|
||||
this.leftMenu = false;
|
||||
this.rightMenu = false;
|
||||
this.toggleLeftMenu = function() {
|
||||
this.leftMenu = !this.leftMenu;
|
||||
$('body').toggleClass('left-menu-active');
|
||||
};
|
||||
this.toggleRightMenu = function() {
|
||||
this.rightMenu = !this.rightMenu;
|
||||
$('body').toggleClass('right-menu-active');
|
||||
};
|
||||
var width = (window.innerWidth > 0) ? window.innerWidth : screen.width;
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
<div class="btn-group hidden-desktop">
|
||||
<button type="button" class="btn" ng-click="MobileService.toggleRightMenu()">
|
||||
<i class="icon-wrench"></i>
|
||||
<i ng-class="{'icon-double-angle-right' : !MobileService.rightMenu, 'icon-double-angle-left': MobileService.rightMenu}"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -65,7 +65,8 @@
|
||||
<button class="btn" type="submit"><i class="icon-search"></i></button>
|
||||
</form>
|
||||
<div class="btn-group donate">
|
||||
<button class="btn btn-success" type="button" ng-click="toHelp()"><i class="icon-question-sign"></i> ${toolbar.about} / ${toolbar.donate}</button>
|
||||
<button class="btn btn-success" type="button" ng-click="toHelp()"><i class="icon-question-sign"></i>
|
||||
{{ MobileService.mobile ? ' ' : '${toolbar.about} / ${toolbar.donate}' }}</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user