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 ────────────────────────────────────────────── */ /* ── Domain links ────────────────────────────────────────────── */
.th-domains {
text-align: right;
}
.entry-domains { .entry-domains {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;

View File

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