Strip port from domain display and right-align Domains column header
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user