Strip port from domain display and right-align Domains column header
This commit is contained in:
@@ -299,6 +299,10 @@ main {
|
||||
|
||||
/* ── Domain links ────────────────────────────────────────────── */
|
||||
|
||||
.th-domains {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.entry-domains {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user