Add spacing around percentages

Fixes #1513
pull/1522/head
Uku Taht 5 years ago
parent a2d0244315
commit 4c4895edb3

@ -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>
)

@ -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>

Loading…
Cancel
Save