fix: remove restricted fields from public listing query, fix service worker offline fallback, style description as card and remove redundant heading

This commit is contained in:
2026-02-07 09:04:13 +01:00
parent 3c7d475d36
commit 3f51cb5e53
3 changed files with 9 additions and 5 deletions

View File

@@ -212,7 +212,6 @@ class PageListing extends HTMLElement {
<!-- Description -->
<section class="listing-description">
<h2>${t('listing.description')}</h2>
<div class="description-text">${this.formatDescription(this.listing.description)}</div>
</section>
@@ -746,7 +745,14 @@ style.textContent = /* css */`
filter: grayscale(1);
}
page-listing .listing-description,
page-listing .listing-description {
background: var(--color-bg-secondary);
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: var(--space-lg);
margin-bottom: var(--space-xl);
}
page-listing .listing-location-section {
margin-bottom: var(--space-xl);
}

View File

@@ -379,9 +379,7 @@ class DirectusService {
'shipping',
'shipping_cost',
'views',
'payment_status',
'expires_at',
'monero_address',
'date_created',
'user_created',
'images.directus_files_id.id',

View File

@@ -167,7 +167,7 @@ async function staleWhileRevalidate(request) {
cache.put(request, response.clone());
}
return response;
}).catch(() => cached);
}).catch(() => cached || new Response('Offline', { status: 503 }));
return cached || fetchPromise;
}