Merge pull request #177 from lorenzhs/mobile
Further improve mobile layout
This commit is contained in:
commit
41bdb90a5e
2 changed files with 9 additions and 4 deletions
|
@ -670,8 +670,10 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
|||
}
|
||||
|
||||
// Open and close panels while on mobile devices through swiping
|
||||
$scope.swipeSidebar = function() {
|
||||
$scope.showSidebar = !$scope.showSidebar;
|
||||
$scope.swipeSidebar = function() {
|
||||
if (document.body.clientWidth < mobile_cutoff) {
|
||||
$scope.showSidebar = !$scope.showSidebar;
|
||||
}
|
||||
};
|
||||
|
||||
$scope.openNick = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue