Skip to content

Commit 7425bd0

Browse files
committed
feat(detector): improved report table style
1 parent 3f9ba28 commit 7425bd0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

detector/src/reporters/layout/example.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,24 +97,24 @@ <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white"
9797
<tr class="hidden" id="details-{{@index}}">
9898
<td colspan="3" class="p-0" data-testid="{{@index}}-code">
9999
{{#if smells.length}}
100-
<table>
100+
<table class="w-full text-left table-auto min-w-max">
101101
<thead>
102102
<tr>
103-
<th data-testid="smells-table-type">Smell type</th>
104-
<th data-testid="smells-table-description">Smell description</th>
105-
<th data-testid="smells-table-start-line">Smell line</th>
103+
<th data-testid="smells-table-type" class="p-4 border-b border-blue-gray-100 bg-blue-gray-50">Smell type</th>
104+
<th data-testid="smells-table-description" class="p-4 border-b border-blue-gray-100 bg-blue-gray-50">Smell description</th>
105+
<th data-testid="smells-table-start-line" class="p-4 border-b border-blue-gray-100 bg-blue-gray-50">Smell line</th>
106106
</tr>
107107
</thead>
108108
<tbody>
109109
<tr>
110110
{{#each smells}}
111-
<td>
111+
<td class="p-4 border-b border-blue-gray-50">
112112
<div data-testid="{{@../index}}-smell-name-{{@index}}">{{this.type}}</div>
113113
</td>
114-
<td>
114+
<td class="p-4 border-b border-blue-gray-50">
115115
<div data-testid="{{@../index}}-smell-description-{{@index}}">{{this.description}}</div>
116116
</td>
117-
<td>
117+
<td class="p-4 border-b border-blue-gray-50">
118118
<div data-testid="{{@../index}}-smell-start-line-{{@index}}">{{this.lineStart}}</div>
119119
</td>
120120
{{/each }}

0 commit comments

Comments
 (0)