This commit is contained in:
Michele Artini 2022-12-01 10:44:09 +01:00
parent 092bd008e3
commit 6e3700ba31
1 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@
<div class="card-body"> <div class="card-body">
<h5 class="card-title">{{section.name}}</h5> <h5 class="card-title">{{section.name}}</h5>
<table class="table table-striped table-sm small"> <table class="table table-striped table-sm small" style="table-layout: fixed;">
<thead ng-if="section.name == 'Modules'"> <thead ng-if="section.name == 'Modules'">
<tr> <tr>
<th>Group ID</th> <th>Group ID</th>
@ -31,8 +31,8 @@
</thead> </thead>
<tbody> <tbody>
<tr ng-repeat="r in section.data|filter:infoFilter" ng-if="section.name != 'Modules'"> <tr ng-repeat="r in section.data|filter:infoFilter" ng-if="section.name != 'Modules'">
<th style="width:30%">{{r.k}}</th> <th style="width: 25%;">{{r.k}}</th>
<td><pre style="margin: 0">{{r.v}}</pre></td> <td style="overflow-x:auto;"><pre style="margin: 0;">{{r.v}}</pre></td>
</tr> </tr>
<tr ng-repeat="r in section.data|filter:infoFilter" ng-if="section.name == 'Modules'" ng-class="{'table-warning' : r.files.length > 1}"> <tr ng-repeat="r in section.data|filter:infoFilter" ng-if="section.name == 'Modules'" ng-class="{'table-warning' : r.files.length > 1}">
<td>{{r.group}}</td> <td>{{r.group}}</td>
@ -63,7 +63,7 @@
angular.forEach(res.data, function(section) { angular.forEach(res.data, function(section) {
if (section.name != 'Modules') { if (section.name != 'Modules') {
angular.forEach(section.data, function(r) { angular.forEach(section.data, function(r) {
if (r.k.toLowerCase().includes('path')) { if (r.k.toLowerCase().endsWith('path') || r.k.toLowerCase().endsWith('.dirs')) {
r.v = r.v.replaceAll(':', ':\n'); r.v = r.v.replaceAll(':', ':\n');
} }
}); });