Skip to content

Commit 0498289

Browse files
committed
Merge branch 'comm-filter-plugin/release/v0.5.2' into comm-filter-plugin/develop
# Conflicts: # built/comm-filter.meta.js # built/comm-filter.user.js
2 parents d41c7ed + 1de0801 commit 0498289

5 files changed

+44
-23
lines changed

README.ja

+5
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@
7171
独自ビルドの IITC Mobile(version 0.25.1 ベース)
7272

7373
*** リリース履歴
74+
**** v0.5.2
75+
Android の画面サイズが小さいデバイスでは依然としてチェックボックス項目が水平方向にはみ出す問題に対応し,
76+
チェックボックス項目の領域を左右にスライドさせることで全てのチェックボックス項目を表示できるようにしました.
77+
https://github.com/udnp/iitc-plugins/issues/7
78+
7479
**** v0.5.1
7580
Android 版でチェックボックス項目が水平方向にはみ出す場合がある問題を修正し、
7681
テキストボックスを click/tap した際に幅を広げチェックボックスを非表示にするようにしました。

built/comm-filter.meta.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
// @name IITC plugin: COMM Filter
44
// @author udnp
55
// @category COMM
6-
// @version 0.5.2.20160406.102111
6+
// @version 0.5.2.20160411.123020
77
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
88
// @source https://github.com/udnp/iitc-plugins
9-
// @updateURL https://github.com/udnp/iitc-plugins/raw/comm-filter-plugin/develop/built/comm-filter.meta.js
10-
// @downloadURL https://github.com/udnp/iitc-plugins/raw/comm-filter-plugin/develop/built/comm-filter.user.js
11-
// @description [udnp-2016-04-06-102111] COMM Filter
9+
// @updateURL https://github.com/udnp/iitc-plugins/raw/master/built/comm-filter.meta.js
10+
// @downloadURL https://github.com/udnp/iitc-plugins/raw/master/built/comm-filter.user.js
11+
// @description [udnp-2016-04-11-123020] COMM Filter
1212
// @include https://www.ingress.com/intel*
1313
// @include http://www.ingress.com/intel*
1414
// @match https://www.ingress.com/intel*

built/comm-filter.user.js

+13-7
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
// @name IITC plugin: COMM Filter
44
// @author udnp
55
// @category COMM
6-
// @version 0.5.2.20160406.102111
6+
// @version 0.5.2.20160411.123020
77
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
88
// @source https://github.com/udnp/iitc-plugins
9-
// @updateURL https://github.com/udnp/iitc-plugins/raw/comm-filter-plugin/develop/built/comm-filter.meta.js
10-
// @downloadURL https://github.com/udnp/iitc-plugins/raw/comm-filter-plugin/develop/built/comm-filter.user.js
11-
// @description [udnp-2016-04-06-102111] COMM Filter
9+
// @updateURL https://github.com/udnp/iitc-plugins/raw/master/built/comm-filter.meta.js
10+
// @downloadURL https://github.com/udnp/iitc-plugins/raw/master/built/comm-filter.user.js
11+
// @description [udnp-2016-04-11-123020] COMM Filter
1212
// @include https://www.ingress.com/intel*
1313
// @include http://www.ingress.com/intel*
1414
// @match https://www.ingress.com/intel*
@@ -28,7 +28,7 @@ if(typeof window.plugin !== 'function') window.plugin = function() {};
2828
//PLUGIN AUTHORS: writing a plugin outside of the IITC build environment? if so, delete these lines!!
2929
//(leaving them in place might break the 'About IITC' page or break update checks)
3030
plugin_info.buildName = 'udnp';
31-
plugin_info.dateTimeVersion = '20160406.102111';
31+
plugin_info.dateTimeVersion = '20160411.123020';
3232
plugin_info.pluginId = 'comm-filter';
3333
//END PLUGIN AUTHORS NOTE
3434

@@ -271,6 +271,7 @@ window.plugin.commfilter = (function() {
271271
this.checked = config.filter[action];
272272

273273
this.dom = document.createElement('label');
274+
this.dom.className = 'switch';
274275
this.dom.textContent = action;
275276
this.dom.insertBefore(switchDom, this.dom.firstChild);
276277
};
@@ -520,10 +521,15 @@ window.plugin.commfilter = (function() {
520521
new FilterSwitch('created'),
521522
new FilterSwitch('destroyed')];
522523

524+
var switchesDom = document.createElement('span');
525+
switchesDom.className = 'switchgroup';
526+
523527
for(var i = 0; i < filterSwitches.length; i++) {
524-
dom.appendChild(filterSwitches[i].dom);
528+
switchesDom.appendChild(filterSwitches[i].dom);
525529
}
526530

531+
dom.appendChild(switchesDom);
532+
527533
dom.addEventListener('click', function(event){
528534
for(var i = 0; i < filterSwitches.length; i++) {
529535
if(event.target.name === filterSwitches[i].name) {
@@ -538,7 +544,7 @@ window.plugin.commfilter = (function() {
538544

539545
$("<style>")
540546
.prop("type", "text/css")
541-
.html("#PLUGIN_COMM_FILTER {\n height: 24px;\n display: flex;\n align-items: center;\n padding: 0 0.5ex;\n}\n\n#PLUGIN_COMM_FILTER>.title {\n padding-right: 0.5ex;\n}\n\n#PLUGIN_COMM_FILTER>select {\n margin: 0 1ex;\n}\n\n#PLUGIN_COMM_FILTER>label {\n white-space: nowrap;\n margin-left: 1.2ex;\n}\n\n#PLUGIN_COMM_FILTER>input {\n height: 24px;\n}\n\n#PLUGIN_COMM_FILTER>input[name=omni] {\n flex-grow: 1;\n flex-shrink: 1;\n flex-basis: 0;\n min-width: 6ex;\n}\n\n#PLUGIN_COMM_FILTER>input[name=omni]:focus~label {\n display: none;\n}\n\n#PLUGIN_COMM_FILTER>button {\n padding: 2px;\n min-width: 40px;\n color: #FFCE00;\n border: 1px solid #FFCE00;\n background-color: rgba(8, 48, 78, 0.9);\n text-align: center;\n}\n\n#chat {\n padding-bottom: 24px;\n}\n\n#chatall>.status, #chatfaction>.status, #chatalerts>.status {\n height: 20px;\n text-align: center;\n font-style: italic;\n}\n\n#chatall>table, #chatfaction>table, #chatalerts>table {\n table-layout: auto;\n}\n\n#chatall>table td:nth-child(2),\n#chatfaction>table td:nth-child(2),\n#chatalerts>table td:nth-child(2) {\n width: 15ex;\n}\n\n/* tentatively to show 3 log lines on minimized */\n#chat {\n height: 84px; /* 60px + 24px */\n}\n\n/* tentatively to show 3 log lines on minimized */\n#chatcontrols {\n bottom: 106px; /* 82px + 24px */\n}\n\n/* hack chat.js divider */\n#chatall>table tr.divider,\n#chatfaction>table tr.divider,\n#chatalerts>table tr.divider {\n border-top: solid 1px #bbb;\n}\n\n#chatall>table tr.divider>td,\n#chatfaction>table tr.divider>td,\n#chatalerts>table tr.divider>td {\n padding-top: 3px;\n}\n\n#chatall>table tr.divider summary,\n#chatfaction>table tr.divider summary,\n#chatalerts>table tr.divider summary {\n box-sizing: border-box;\n padding-left: 2ex;\n}\n")
547+
.html("#PLUGIN_COMM_FILTER {\n display: flex;\n align-items: center;\n padding: 0 0.5ex;\n}\n\n#PLUGIN_COMM_FILTER .title {\n padding-right: 0.5ex;\n flex: none; /* for Android K WebView */\n}\n\n#PLUGIN_COMM_FILTER>select {\n margin: 0 1ex;\n}\n\n#PLUGIN_COMM_FILTER>.switchgroup {\n overflow-x: auto;\n display: inline-flex;\n}\n\n#PLUGIN_COMM_FILTER .switch {\n white-space: nowrap;\n margin-left: 1.2ex;\n flex: none; /* for Android K WebView */\n display: inline-flex;\n align-items: center;\n}\n\n#PLUGIN_COMM_FILTER>input[name=omni] {\n flex-grow: 1;\n flex-shrink: 0;\n flex-basis: auto;\n width: 16ex;\n}\n\n#PLUGIN_COMM_FILTER>input[name=omni]:focus~.switchgroup {\n display: none;\n}\n\n#PLUGIN_COMM_FILTER>button {\n padding: 2px;\n min-width: 40px;\n color: #FFCE00;\n border: 1px solid #FFCE00;\n background-color: rgba(8, 48, 78, 0.9);\n text-align: center;\n}\n\n#chat {\n padding-bottom: 24px;\n}\n\n#chatall>.status, #chatfaction>.status, #chatalerts>.status {\n height: 20px;\n text-align: center;\n font-style: italic;\n}\n\n#chatall>table, #chatfaction>table, #chatalerts>table {\n table-layout: auto;\n}\n\n#chatall>table td:nth-child(2),\n#chatfaction>table td:nth-child(2),\n#chatalerts>table td:nth-child(2) {\n width: 15ex;\n}\n\n/* tentatively to show 3 log lines on minimized */\n#chat {\n height: 84px; /* 60px + 24px */\n}\n\n/* tentatively to show 3 log lines on minimized */\n#chatcontrols {\n bottom: 106px; /* 82px + 24px */\n}\n\n/* hack chat.js divider */\n#chatall>table tr.divider,\n#chatfaction>table tr.divider,\n#chatalerts>table tr.divider {\n border-top: solid 1px #bbb;\n}\n\n#chatall>table tr.divider>td,\n#chatfaction>table tr.divider>td,\n#chatalerts>table tr.divider>td {\n padding-top: 3px;\n}\n\n#chatall>table tr.divider summary,\n#chatfaction>table tr.divider summary,\n#chatalerts>table tr.divider summary {\n box-sizing: border-box;\n padding-left: 2ex;\n}\n")
542548
.appendTo("head");
543549
}
544550

src/comm-filter.css

+15-11
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
11
#PLUGIN_COMM_FILTER {
2-
height: 24px;
32
display: flex;
43
align-items: center;
54
padding: 0 0.5ex;
65
}
76

8-
#PLUGIN_COMM_FILTER>.title {
7+
#PLUGIN_COMM_FILTER .title {
98
padding-right: 0.5ex;
9+
flex: none; /* for Android K WebView */
1010
}
1111

1212
#PLUGIN_COMM_FILTER>select {
1313
margin: 0 1ex;
1414
}
1515

16-
#PLUGIN_COMM_FILTER>label {
17-
white-space: nowrap;
18-
margin-left: 1.2ex;
16+
#PLUGIN_COMM_FILTER>.switchgroup {
17+
overflow-x: auto;
18+
display: inline-flex;
1919
}
2020

21-
#PLUGIN_COMM_FILTER>input {
22-
height: 24px;
21+
#PLUGIN_COMM_FILTER .switch {
22+
white-space: nowrap;
23+
margin-left: 1.2ex;
24+
flex: none; /* for Android K WebView */
25+
display: inline-flex;
26+
align-items: center;
2327
}
2428

2529
#PLUGIN_COMM_FILTER>input[name=omni] {
2630
flex-grow: 1;
27-
flex-shrink: 1;
28-
flex-basis: 0;
29-
min-width: 6ex;
31+
flex-shrink: 0;
32+
flex-basis: auto;
33+
width: 16ex;
3034
}
3135

32-
#PLUGIN_COMM_FILTER>input[name=omni]:focus~label {
36+
#PLUGIN_COMM_FILTER>input[name=omni]:focus~.switchgroup {
3337
display: none;
3438
}
3539

src/comm-filter.user.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ window.plugin.commfilter = (function() {
259259
this.checked = config.filter[action];
260260

261261
this.dom = document.createElement('label');
262+
this.dom.className = 'switch';
262263
this.dom.textContent = action;
263264
this.dom.insertBefore(switchDom, this.dom.firstChild);
264265
};
@@ -508,10 +509,15 @@ window.plugin.commfilter = (function() {
508509
new FilterSwitch('created'),
509510
new FilterSwitch('destroyed')];
510511

512+
var switchesDom = document.createElement('span');
513+
switchesDom.className = 'switchgroup';
514+
511515
for(var i = 0; i < filterSwitches.length; i++) {
512-
dom.appendChild(filterSwitches[i].dom);
516+
switchesDom.appendChild(filterSwitches[i].dom);
513517
}
514518

519+
dom.appendChild(switchesDom);
520+
515521
dom.addEventListener('click', function(event){
516522
for(var i = 0; i < filterSwitches.length; i++) {
517523
if(event.target.name === filterSwitches[i].name) {

0 commit comments

Comments
 (0)