Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Add spacing around percentages

Uku Taht4c4895edb3d2
diff --git a/assets/js/dashboard/stats/modals/table.js b/assets/js/dashboard/stats/modals/table.js
index 517234a415..f97655e6b5 100644
--- a/assets/js/dashboard/stats/modals/table.js
+++ b/assets/js/dashboard/stats/modals/table.js
@@ -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>
)
diff --git a/assets/js/dashboard/stats/reports/list.js b/assets/js/dashboard/stats/reports/list.js
index c7e1ad0a50..63de8c737f 100644
--- a/assets/js/dashboard/stats/reports/list.js
+++ b/assets/js/dashboard/stats/reports/list.js
@@ -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>