Skip to content

Commit bd95761

Browse files
committed
Fixes #7167: Ensure consistent font size when using monospace formatting
1 parent 908e6a7 commit bd95761

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

docs/release-notes/version-3.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Bug Fixes
66

7+
* [#7167](https://github.com/netbox-community/netbox/issues/7167) - Ensure consistent font size when using monospace formatting
78
* [#7226](https://github.com/netbox-community/netbox/issues/7226) - Exempt GraphQL API requests from CSRF inspection
89

910
---

netbox/templates/dcim/device.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ <h5 class="card-header">
9595
</tr>
9696
<tr>
9797
<th scope="row">Serial Number</th>
98-
<td><code>{{ object.serial|placeholder }}</code></td>
98+
<td class="font-monospace">{{ object.serial|placeholder }}</td>
9999
</tr>
100100
<tr>
101101
<th scope="row">Asset Tag</th>
102-
<td><span>{{ object.asset_tag|placeholder }}</span></td>
102+
<td class="font-monospace">{{ object.asset_tag|placeholder }}</td>
103103
</tr>
104104
</table>
105105
</div>

netbox/templates/dcim/rack.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ <h5 class="card-header">
9696
</tr>
9797
<tr>
9898
<th scope="row">Serial Number</th>
99-
<td>{{ object.serial|placeholder }}</td>
99+
<td class="font-monospace">{{ object.serial|placeholder }}</td>
100100
</tr>
101101
<tr>
102102
<th scope="row">Asset Tag</th>
103-
<td>{{ object.asset_tag|placeholder }}</td>
103+
<td class="font-monospace">{{ object.asset_tag|placeholder }}</td>
104104
</tr>
105105
<tr>
106106
<th scope="row">Devices</th>

netbox/templates/extras/report_result.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h5 class="card-header">
3232
<table class="table table-hover">
3333
{% for method, data in result.data.items %}
3434
<tr>
35-
<td><code><a href="#{{ method }}">{{ method }}</a></code></td>
35+
<td class="font-monospace"><a href="#{{ method }}">{{ method }}</a></td>
3636
<td class="text-end report-stats">
3737
<span class="badge bg-success">{{ data.success }}</span>
3838
<span class="badge bg-info">{{ data.info }}</span>

netbox/templates/extras/webhook.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ <h5 class="card-header">
7979
</tr>
8080
<tr>
8181
<th scope="row">Payload URL</th>
82-
<td><code>{{ object.payload_url }}</code></td>
82+
<td class="font-monospace">{{ object.payload_url }}</td>
8383
</tr>
8484
<tr>
8585
<th scope="row">HTTP Content Type</th>

netbox/templates/ipam/routetarget.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h5 class="card-header">
1313
<table class="table table-hover attr-table">
1414
<tr>
1515
<th scope="row">Name</th>
16-
<td><code>{{ object.name }}</code></td>
16+
<td class="font-monospace">{{ object.name }}</td>
1717
</tr>
1818
<tr>
1919
<th scope="row">Tenant</th>

0 commit comments

Comments
 (0)