diff --git a/Client/WebServer/css/docs.css b/Client/WebServer/css/docs.css
index f3f1952bc..2d5dc49ac 100644
--- a/Client/WebServer/css/docs.css
+++ b/Client/WebServer/css/docs.css
@@ -717,4 +717,13 @@ border-spacing: 0;
border-collapse: collapse;
font: 400 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
color: #111;
+}
+
+.docs-hierarchy-table-row{
+background-color: #f5f5f5;
+}
+
+.docs-hierarchy-table-cell{
+ text-align: center;
+ vertical-align: middle;
}
\ No newline at end of file
diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js
index add77f9b9..0dcb7d36f 100644
--- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js
+++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js
@@ -2986,6 +2986,14 @@ function newSuperalgosDocSpace() {
function parseHierarchy(params) {
+ const MAX_COLUMNS = 8
+ const MAX_ROWS = 100
+
+ const ELBOW = 'elbow'
+ const FORK = 'fork'
+ const LINE = 'line'
+ const SPACE = 'space'
+
let splittedParams = params.split('->')
let project = splittedParams[0]
let type = splittedParams[1]
@@ -2994,20 +3002,12 @@ function newSuperalgosDocSpace() {
appSchemaDocument = SCHEMAS_BY_PROJECT.get(project).map.appSchema.get(type)
if (appSchemaDocument === undefined) { return }
if (isNaN(levels) === true) { return }
- if (levels > 10) { return }
-
- const MAX_COLUMNS = 10
- const MAX_ROWS = 100
-
- const ELBOW = 'elbow'
- const FORK = 'fork'
- const LINE = 'line'
- const SPACE = 'space'
+ if (levels > MAX_COLUMNS) { return }
let contentMatrix = []
for (let i = 0; i < MAX_ROWS; i++) {
- contentMatrix.push(['', '', '', '', '', '', '', '', '', ''])
+ contentMatrix.push(['', '', '', '', '', '', '', ''])
}
let currentColumn = 0
@@ -3037,7 +3037,7 @@ function newSuperalgosDocSpace() {
let imageContainer = '
'
hierarchyImagesArray.push(imageItem)
- let matrixValue = '| ' + imageContainer + ' |
| ' + addToolTips(schemaDocument.type) + ' |
'
+ let matrixValue = '| ' + imageContainer + ' |
| ' + addToolTips(schemaDocument.type) + ' |
'
let matrixRow = contentMatrix[currentRow]
matrixRow[currentColumn] = matrixValue
@@ -3150,19 +3150,27 @@ function newSuperalgosDocSpace() {
/*
Add HTML
*/
- HTML = HTML + ''
+ let oddRow = false
for (let i = 0; i < currentRow + 1; i++) {
let matrixRow = contentMatrix[i]
- HTML = HTML + ''
- for (let j = 0; j < matrixRow.length; j++) {
- HTML = HTML + '| '
- HTML = HTML + matrixRow[j]
- HTML = HTML + ' | '
+ let rowClass
+ if (oddRow === false) {
+ oddRow = true
+ rowClass = ''
+ } else {
+ oddRow = false
+ rowClass = 'class="docs-hierarchy-table-row"'
+ }
+
+ HTML = HTML + '
'
+ for (let j = 0; j < matrixRow.length; j++) {
+ HTML = HTML + '| '
+ HTML = HTML + matrixRow[j]
+ HTML = HTML + ' | '
}
HTML = HTML + '
'
}
- HTML = HTML + '
'
}
}
}