From 11ab07b2381ecd9495cb989602dbd051cd154ceb Mon Sep 17 00:00:00 2001 From: bgamard Date: Sat, 15 Feb 2020 15:44:32 +0100 Subject: [PATCH] Closes #333: fix overflow in document table with a lot of tags --- .../webapp/src/app/docs/directive/AddSpaceBetween.js | 12 ++++++++++++ docs-web/src/main/webapp/src/index.html | 1 + .../src/main/webapp/src/partial/docs/document.html | 2 +- docs-web/src/main/webapp/src/style/main.less | 4 ++++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 docs-web/src/main/webapp/src/app/docs/directive/AddSpaceBetween.js diff --git a/docs-web/src/main/webapp/src/app/docs/directive/AddSpaceBetween.js b/docs-web/src/main/webapp/src/app/docs/directive/AddSpaceBetween.js new file mode 100644 index 00000000..b5c4e787 --- /dev/null +++ b/docs-web/src/main/webapp/src/app/docs/directive/AddSpaceBetween.js @@ -0,0 +1,12 @@ +'use strict'; + +/** + * Add space between element directive. + */ +angular.module('docs').directive('addSpaceBetween', function () { + return function (scope, element) { + if(!scope.$last) { + element.after(' '); + } + } +}); \ No newline at end of file diff --git a/docs-web/src/main/webapp/src/index.html b/docs-web/src/main/webapp/src/index.html index 1684bb2f..1accf21a 100644 --- a/docs-web/src/main/webapp/src/index.html +++ b/docs-web/src/main/webapp/src/index.html @@ -106,6 +106,7 @@ + diff --git a/docs-web/src/main/webapp/src/partial/docs/document.html b/docs-web/src/main/webapp/src/partial/docs/document.html index 3bcf5a38..416d5926 100644 --- a/docs-web/src/main/webapp/src/partial/docs/document.html +++ b/docs-web/src/main/webapp/src/partial/docs/document.html @@ -258,7 +258,7 @@
- + {{ tag.name }}
diff --git a/docs-web/src/main/webapp/src/style/main.less b/docs-web/src/main/webapp/src/style/main.less index befba00b..46c696cf 100644 --- a/docs-web/src/main/webapp/src/style/main.less +++ b/docs-web/src/main/webapp/src/style/main.less @@ -120,6 +120,10 @@ ul.tag-tree { cursor: pointer; td { + .tags { + line-height: 190%; + } + .label { margin-left: 5px; }