mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 14:07:55 +01:00
Closes #333: fix overflow in document table with a lot of tags
This commit is contained in:
parent
d2e2f089fb
commit
11ab07b238
@ -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(' ');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
@ -106,6 +106,7 @@
|
|||||||
<script src="app/docs/directive/Acl.js" type="text/javascript"></script>
|
<script src="app/docs/directive/Acl.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/directive/AclEdit.js" type="text/javascript"></script>
|
<script src="app/docs/directive/AclEdit.js" type="text/javascript"></script>
|
||||||
<script src="app/docs/directive/Pell.js" type="text/javascript"></script>
|
<script src="app/docs/directive/Pell.js" type="text/javascript"></script>
|
||||||
|
<script src="app/docs/directive/AddSpaceBetween.js" type="text/javascript"></script>
|
||||||
<!-- endref -->
|
<!-- endref -->
|
||||||
</head>
|
</head>
|
||||||
<body translate-cloak ng-cloak>
|
<body translate-cloak ng-cloak>
|
||||||
|
@ -258,7 +258,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tags small">
|
<div class="tags small">
|
||||||
<span class="label label-info" ng-repeat="tag in document.tags" ng-style="{ 'background': tag.color }">
|
<span class="label label-info" ng-repeat="tag in document.tags" ng-style="{ 'background': tag.color }" add-space-between>
|
||||||
{{ tag.name }}
|
{{ tag.name }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -120,6 +120,10 @@ ul.tag-tree {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
td {
|
td {
|
||||||
|
.tags {
|
||||||
|
line-height: 190%;
|
||||||
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user