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
|
@ -172,7 +172,8 @@ input[type=text], input[type=password], .badge {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
margin-top: 35px; /* topbar */
|
padding-top: 35px; /* topbar */
|
||||||
|
padding-bottom: 1px; /* need to force a padding here */
|
||||||
font-size: smaller;
|
font-size: smaller;
|
||||||
-webkit-transition:0.35s ease all;
|
-webkit-transition:0.35s ease all;
|
||||||
transition:0.35s ease all;
|
transition:0.35s ease all;
|
||||||
|
@ -345,8 +346,10 @@ table.notimestamp td.time {
|
||||||
font-size: normal;
|
font-size: normal;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
width: 60%;
|
width: auto;
|
||||||
|
max-width: 60%;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
|
padding-bottom: 35px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#sidebar.in, #sidebar.collapsing {
|
#sidebar.in, #sidebar.collapsing {
|
||||||
|
|
|
@ -671,7 +671,9 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
||||||
|
|
||||||
// Open and close panels while on mobile devices through swiping
|
// Open and close panels while on mobile devices through swiping
|
||||||
$scope.swipeSidebar = function() {
|
$scope.swipeSidebar = function() {
|
||||||
$scope.showSidebar = !$scope.showSidebar;
|
if (document.body.clientWidth < mobile_cutoff) {
|
||||||
|
$scope.showSidebar = !$scope.showSidebar;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.openNick = function() {
|
$scope.openNick = function() {
|
||||||
|
|
Loading…
Reference in a new issue