Browse Source

Fixed screen width, disabled transitions

master
Igor Zhukov 11 years ago
parent
commit
a5d92adaa7
  1. 21
      app/css/app.css
  2. 2
      app/js/controllers.js
  3. 4
      app/js/lib/config.js

21
app/css/app.css

@ -879,13 +879,17 @@ a.tg_radio_on:hover i.icon-radio { @@ -879,13 +879,17 @@ a.tg_radio_on:hover i.icon-radio {
background : rgba(0,0,0,0.0);
width : 12px;
right: 0px;
-webkit-transition : .2s;
-moz-transition : .2s;
-o-transition : .2s;
transition : .2s;
-moz-border-radius : 0;
-webkit-border-radius : 0;
border-radius : 0;
/*-webkit-transition : .2s;
-moz-transition : .2s;
-o-transition : .2s;
transition : .2s;*/
-webkit-transition : none;
-moz-transition : none;
-o-transition : none;
transition : none;
}
.im_dialogs_col .nano > .pane > .slider {
background: #A5B1B9;
@ -1136,13 +1140,18 @@ a.im_dialog_selected .im_dialog_date { @@ -1136,13 +1140,18 @@ a.im_dialog_selected .im_dialog_date {
width : 9px;
right: 0;
top: 0;
-webkit-transition : .2s;
/*-webkit-transition : .2s;
-moz-transition : .2s;
-o-transition : .2s;
transition : .2s;
transition : .2s;*/
-moz-border-radius : 2px;
-webkit-border-radius : 2px;
border-radius : 2px;
-webkit-transition : none;
-moz-transition : none;
-o-transition : none;
transition : none;
}
.contacts_modal_col .nano > .pane {

2
app/js/controllers.js

@ -321,8 +321,10 @@ angular.module('myApp.controllers', []) @@ -321,8 +321,10 @@ angular.module('myApp.controllers', [])
if ($routeParams.q !== lastSearch) {
$scope.search.query = lastSearch = $routeParams.q;
$scope.search.messages = true;
if ($scope.curDialog !== undefined) {
return false;
}
}
} else {
lastSearch = false;
}

4
app/js/lib/config.js

@ -35,8 +35,8 @@ Config.Navigator = { @@ -35,8 +35,8 @@ Config.Navigator = {
osX: (navigator.platform || '').toLowerCase().indexOf('mac') != -1 ||
(navigator.userAgent || '').toLowerCase().indexOf('mac') != -1,
retina: window.devicePixelRatio > 1,
touch: $(window).width() <= 768,
mobile: $(window).width() < 480
touch: screen.width <= 768,
mobile: screen.width < 480
};
Config.Schema = Config.Schema || {};

Loading…
Cancel
Save