Skip to content

Commit c733065

Browse files
authored
Merge pull request #310 from TonyGravagno/tg-nav-gaps1
Enhance UX for gaps in nav lists
2 parents 7c5e028 + 149bec4 commit c733065

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

files/generators/generate-navs.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ function generateNavigators(scope, navs, name, state, pfx) {
2121
if (navs instanceof Array) {
2222
for (const func of navs.filter(nothidden)) {
2323
const m = scope[func];
24-
if (!func) { nav += "<li></li>"; }
24+
// any undefined non-empty value for data-theme results in no styling = gap
25+
if (!func) { nav += "\n\t\t\t<li data-theme='x'>&nbsp;</li>"; }
2526
else if (name !== 'All' && scope['_' + func]) { scope['_' + func].hasNav = true; }
2627
else if (!m) { Throw(`nav to deleted method ${state.curScope}.${func}`); }
2728
else {
@@ -45,7 +46,7 @@ function generateNavigators(scope, navs, name, state, pfx) {
4546
}
4647
if (!val) val = state.curScope + "/" + cat + ".htm";
4748

48-
// targtet file
49+
// target file
4950
if (typeof val === "string") {
5051
const m = val.match(state.curScope + "\\/(\\w+).htm(#(.*))?");
5152
/** @type {DSFunction|string|undefined} */

files/markup/en/app-navs.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"LoadScript",
2626
"Script",
2727
"Start",
28-
"Import",
29-
"Include",
28+
"Import",
29+
"Include",
3030
"",
3131
"Func",
3232
"Execute",
@@ -181,7 +181,7 @@
181181
"AddSeekBar",
182182
"AddSpinner",
183183
"AddSwitch",
184-
"AddTabs",
184+
"AddTabs",
185185
"AddText",
186186
"AddTextEdit",
187187
"AddToggle",
@@ -227,27 +227,27 @@
227227
"SetOnDebug",
228228
"CreateDebug",
229229
"ShowDebug",
230-
"IsDebugVisible",
231-
"GetDebug",
230+
"IsDebugVisible",
231+
"GetDebug",
232232
"",
233233
"Error",
234234
"SetOnError",
235-
"SetErrorFilter"
235+
"SetErrorFilter"
236236
],
237237
"Device Control": [
238238
"GetVolume",
239239
"SetVolume",
240240
"GetClipboardText",
241241
"SetClipboardText",
242-
"GetShortcuts",
242+
"GetShortcuts",
243243
"",
244244
"CreateNotification",
245245
"CreateShortcut",
246246
"InstallApp",
247247
"ScreenShot",
248248
"SysExec",
249249
"Vibrate",
250-
"Print",
250+
"Print",
251251
"",
252252
"DisableKeys",
253253
"DisableTouch",
@@ -283,7 +283,7 @@
283283
"GetEnv",
284284
"GetFreeSpace",
285285
"GetMemoryInfo",
286-
"HasExternalStorage",
286+
"HasExternalStorage",
287287
"",
288288
"GetDefaultOrientation",
289289
"GetDeviceId",

0 commit comments

Comments
 (0)