Skip to content

Commit 1847175

Browse files
authored
Improve webite table styling (#767)
- Right-align and add nowrap whitespace for time column - Apply monospace font to hash cells - Move inline styles to dedicated CSS classes
1 parent a283aed commit 1847175

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

services/website/website.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@
7575
background: #129fea1f !important;
7676
}
7777

78+
.pure-table tr td.cell-time {
79+
text-align: right;
80+
white-space: nowrap;
81+
}
82+
83+
.pure-table tr td.cell-hash {
84+
font-family: monospace;
85+
}
86+
7887
.relay-url-container {
7988
background: #ffffff;
8089
width: auto;
@@ -258,7 +267,7 @@ <h2>
258267
{{$linkDataAPI := .LinkDataAPI}}
259268
{{ range .Payloads }}
260269
<tr>
261-
<td style="text-align: right;">
270+
<td class="cell-time">
262271
<span title="{{.InsertedAt | formatUTC}}">{{.InsertedAt | relativeTime}}</span>
263272
</td>
264273
<td>{{.Epoch | prettyInt}}</td>
@@ -271,7 +280,7 @@ <h2>
271280
<td>
272281
<div title="Blob Gas Used: {{.BlobGasUsed}}">{{.NumBlobs }}</div>
273282
</td>
274-
<td style="font-family: monospace;">{{.BlockHash}}</td>
283+
<td class="cell-hash">{{.BlockHash}}</td>
275284
<td>
276285
<div class="icons-container">
277286
{{ if ne $linkBeaconchain "" }}

0 commit comments

Comments
 (0)