fix: use normalizeAssetUrl for banner

This commit is contained in:
Apple
2025-12-01 07:09:55 -08:00
parent 9e7b1f25ef
commit 092346f057

View File

@@ -94,7 +94,7 @@ export default function MicrodaoDetailPage() {
<section
className="rounded-3xl border border-white/10 bg-gradient-to-br from-sky-950/50 via-slate-900 to-black p-6 md:p-8 space-y-6 relative overflow-hidden shadow-2xl shadow-sky-900/10"
style={microdao.banner_url ? {
backgroundImage: `linear-gradient(to bottom, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), url(${getAssetUrl(microdao.banner_url)})`,
backgroundImage: `linear-gradient(to bottom, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), url(${normalizeAssetUrl(microdao.banner_url)})`,
backgroundSize: 'cover',
backgroundPosition: 'center',
} : undefined}