Commit f943ff78e7

f943ff78e71d4d71f1645b0656d47d60d7b88120

parent: ddb2180827

Unsigned

Alicia Sykes <alicia@omg.lol> · 2026-05-12 16:41 UTC

Sort all listings alphabetically, more impartial

Layout: unified · split

web/src/components/things/ServiceList.astro +6 −2
@@ -27,13 +27,17 @@ const {
27 sectionName, 27 sectionName,
28 categoryName, 28 categoryName,
29} = Astro.props; 29} = Astro.props;
30
31const sortedServices = [...(services || [])].sort((a, b) =>
32 a.name.localeCompare(b.name),
33);
30--- 34---
31 35
32<section> 36<section>
33 { 37 {
34 services && services.length > 0 ? ( 38 sortedServices.length > 0 ? (
35 <ul> 39 <ul>
36 {services.map((service: Service) => ( 40 {sortedServices.map((service: Service) => (
37 <li id={slugify(service.name)}> 41 <li id={slugify(service.name)}>
38 <DeleteListing 42 <DeleteListing
39 client:load 43 client:load
web/src/components/things/WebsiteDetailedInfo.astro +15 −2
@@ -163,7 +163,11 @@ const screenshotUrl = `https://screenshot-cache.as93.workers.dev/${url}`;
163 <img class="preview-shot" src={screenshotUrl} alt="Website preview" width="300" height="50" /> 163 <img class="preview-shot" src={screenshotUrl} alt="Website preview" width="300" height="50" />
164 <div class="link-to-web-check"> 164 <div class="link-to-web-check">
165 <Button url={`https://web-check.xyz/check/${url}`}> 165 <Button url={`https://web-check.xyz/check/${url}`}>
166 <span>View full report at</span><br /><b class="web-check-title">web-check.xyz</b> 166 <img width="32" src="https://web-check.xyz/favicon.svg" />
167 <div class="btn-text">
168 <span>View full report at</span>
169 <b class="web-check-title">web-check.xyz</b>
170 </div>
167 </Button> 171 </Button>
168 </div> 172 </div>
169 173
@@ -263,7 +267,7 @@ const screenshotUrl = `https://screenshot-cache.as93.workers.dev/${url}`;
263 } 267 }
264 268
265 .link-to-web-check { 269 .link-to-web-check {
266 width: 180px; 270 width: 260px;
267 float: right; 271 float: right;
268 font-size: var(--text-base); 272 font-size: var(--text-base);
269 transform: scale(0.8); 273 transform: scale(0.8);
@@ -279,6 +283,15 @@ const screenshotUrl = `https://screenshot-cache.as93.workers.dev/${url}`;
279 .web-check-title { 283 .web-check-title {
280 font-size: var(--text-lg); 284 font-size: var(--text-lg);
281 } 285 }
286 :global(a) {
287 display: flex;
288 gap: var(--space-md);
289 .btn-text {
290 display: flex;
291 flex-direction: column;
292 text-align: left;
293 }
294 }
282 } 295 }
283 296
284</style> 297</style>
web/src/pages/all.astro +1 −1
@@ -59,7 +59,7 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || [];
59 </a> 59 </a>
60 </h3> 60 </h3>
61 <section class="grid"> 61 <section class="grid">
62 {section.services.map((service: Service) => ( 62 {[...section.services].sort((a, b) => a.name.localeCompare(b.name)).map((service: Service) => (
63 <ServiceCard 63 <ServiceCard
64 service={service} 64 service={service}
65 sectionName={section.name} 65 sectionName={section.name}