File tree 2 files changed +12
-10
lines changed
plugins/views/frontend/public
2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 1
1
( function ( ) {
2
2
var pageWidth = 0 ,
3
3
pageHeight = 0 ,
4
- currentDevice = Countly . passed_data . currentDevice && Countly . passed_data . currentDevice . length ? Countly . passed_data . currentDevice : [ ] ,
4
+ currentDevice = Countly . passed_data . currentDevice && Countly . passed_data . currentDevice . length && Countly . passed_data . currentDevice [ 0 ] ? Countly . passed_data . currentDevice : [ ] ,
5
5
currentMap = Countly . passed_data . currentMap == "scroll" ? "scroll" : "click" ,
6
6
showHeatMap = Countly . passed_data . showHeatMap == false ? false : true ,
7
7
clickMap ,
31
31
minWidth : 767 ,
32
32
maxWidth : 1024
33
33
} ,
34
+ {
35
+ type : "desktop-1280" ,
36
+ displayText : "Desktop - 1280" ,
37
+ minWidth : 1024 ,
38
+ maxWidth : 1280
39
+ } ,
34
40
{
35
41
type : "desktop-1366" ,
36
42
displayText : "Desktop - 1366" ,
37
- minWidth : 1024 ,
43
+ minWidth : 1280 ,
38
44
maxWidth : 1366
39
45
} ,
40
46
{
89
95
}
90
96
91
97
for ( var i = 0 ; i < allDevices . length ; i ++ ) {
92
- if ( allDevices [ i ] . type == "all" ) {
93
- devices . push ( allDevices [ i ] ) ;
94
- }
95
-
96
- if ( allDevices [ i ] . maxWidth <= pageWidth ) {
98
+ if ( ( allDevices [ i ] . minWidth != null ) && ( allDevices [ i ] . minWidth < pageWidth ) ) {
97
99
devices . push ( allDevices [ i ] ) ;
98
100
}
99
101
100
- if ( allDevices [ i ] . type === "desktop-other" ) {
102
+ if ( allDevices [ i ] . type === "desktop-other" && ( devices . length > 3 ) ) {
101
103
devices . push ( allDevices [ i ] ) ;
102
104
devices [ devices . length - 1 ] . minWidth = devices [ devices . length - 2 ] . maxWidth ;
103
105
}
776
778
}
777
779
}
778
780
}
779
- } ) ( ) ;
781
+ } ) ( ) ;
Original file line number Diff line number Diff line change 219
219
}
220
220
221
221
# cly-heatmap-topbar .cly-heatmap-dropdown .cly-heatmap-menu .cly-heatmap-list {
222
- max-height : 300 px ;
222
+ max-height : 350 px ;
223
223
overflow : auto
224
224
}
225
225
You can’t perform that action at this time.
0 commit comments