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 {
2727 sectionName,
2828 categoryName,
2929} = Astro.props;
30
31const sortedServices = [...(services || [])].sort((a, b) =>
32 a.name.localeCompare(b.name),
33);
3034---
3135
3236<section>
3337 {
34 services && services.length > 0 ? (
38 sortedServices.length > 0 ? (
3539 <ul>
36 {services.map((service: Service) => (
40 {sortedServices.map((service: Service) => (
3741 <li id={slugify(service.name)}>
3842 <DeleteListing
3943 client:load
web/src/components/things/WebsiteDetailedInfo.astro +15 −2
@@ -163,7 +163,11 @@ const screenshotUrl = `https://screenshot-cache.as93.workers.dev/${url}`;
163163 <img class="preview-shot" src={screenshotUrl} alt="Website preview" width="300" height="50" />
164164 <div class="link-to-web-check">
165165 <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>
167171 </Button>
168172 </div>
169173
@@ -263,7 +267,7 @@ const screenshotUrl = `https://screenshot-cache.as93.workers.dev/${url}`;
263267 }
264268
265269 .link-to-web-check {
266 width: 180px;
270 width: 260px;
267271 float: right;
268272 font-size: var(--text-base);
269273 transform: scale(0.8);
@@ -279,6 +283,15 @@ const screenshotUrl = `https://screenshot-cache.as93.workers.dev/${url}`;
279283 .web-check-title {
280284 font-size: var(--text-lg);
281285 }
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 }
282295 }
283296
284297</style>
web/src/pages/all.astro +1 −1
@@ -59,7 +59,7 @@ const categories = (await fetchData() as AwesomePrivacy)?.categories || [];
5959 </a>
6060 </h3>
6161 <section class="grid">
62 {section.services.map((service: Service) => (
62 {[...section.services].sort((a, b) => a.name.localeCompare(b.name)).map((service: Service) => (
6363 <ServiceCard
6464 service={service}
6565 sectionName={section.name}