Skip to content

Commit 7f0323c

Browse files
committed
style: fix stats page right column alignment
Add fixed width and right-alignment to the numeric column in stats tables so values line up consistently.
1 parent c37902f commit 7f0323c

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

public/css/style.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ tr:hover {
111111
background-color: #f5f5f5;
112112
}
113113

114+
/* Stats-specific styles */
115+
.stats-table td:last-child,
116+
.stats-table th:last-child {
117+
width: 120px;
118+
text-align: right;
119+
}
120+
114121
/* Log-specific styles */
115122
.log-table {
116123
font-size: 14px;

views/stats.handlebars

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<h1>rssCloud v2 - Stats</h1>
1111

1212
<h2>Overview</h2>
13-
<table>
13+
<table class="stats-table">
1414
<tr>
1515
<td>Feeds pinged in last 7 days</td>
1616
<td>{{feedsPingedLast7Days}}</td>
@@ -30,7 +30,7 @@
3030
</table>
3131

3232
<h2>Protocol Breakdown</h2>
33-
<table>
33+
<table class="stats-table">
3434
<tr>
3535
<th>Protocol</th>
3636
<th>Count</th>
@@ -51,7 +51,7 @@
5151

5252
{{#if topFeeds.length}}
5353
<h2>Top Most Subscribed Feeds</h2>
54-
<table>
54+
<table class="stats-table">
5555
<tr>
5656
<th>Feed URL</th>
5757
<th>Subscribers</th>

0 commit comments

Comments
 (0)