Strip port from domain display and right-align Domains column header

This commit is contained in:
Julien Calixte
2026-04-05 21:44:04 +02:00
parent 1a0085ae83
commit e3b0b5cf8d
2 changed files with 6 additions and 2 deletions

View File

@@ -299,6 +299,10 @@ main {
/* ── Domain links ────────────────────────────────────────────── */
.th-domains {
text-align: right;
}
.entry-domains {
display: flex;
flex-wrap: wrap;

View File

@@ -88,7 +88,7 @@ async function fetchDomains(config: Config): Promise<DomainEntry[]> {
function displayDomain(url: string): string {
try {
return new URL(url).host
return new URL(url).hostname
} catch {
return url
}
@@ -228,7 +228,7 @@ export default function App() {
<th>Name</th>
<th>Type</th>
<th>Status</th>
<th>Domains</th>
<th class="th-domains">Domains</th>
</tr>
</thead>
<tbody>