Add spacing around percentages

Fixes #1513
This commit is contained in:
Uku Taht 2021-12-06 15:18:17 +02:00
parent a2d0244315
commit 4c4895edb3
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class ModalTable extends React.Component {
<td className="p-2 w-32 font-medium" align="right">
{numberFormatter(tableItem.visitors)}
{tableItem.percentage >= 0 &&
<span className="inline-block text-xs w-8 text-right">({tableItem.percentage}%)</span> }
<span className="inline-block text-xs w-8 pl-1 text-right">({tableItem.percentage}%)</span> }
</td>
</tr>
)

View File

@ -104,7 +104,7 @@ export default class ListReport extends React.Component {
{numberFormatter(listItem[this.valueKey()])}
{
listItem.percentage >= 0
? <span className="inline-block w-8 text-xs text-right">({listItem.percentage}%)</span>
? <span className="inline-block w-8 pl-1 text-xs text-right">({listItem.percentage}%)</span>
: null
}
</span>