Bump to v0.8.1 — banner height fix, search timeout

Fix profile banner cropping square images (h-36 → h-44 with top-biased
focal point). Fix search hanging forever when no relay supports NIP-50
(8s timeout on fetchEvents in advancedSearch).
This commit is contained in:
Jure
2026-03-20 08:46:17 +01:00
parent 7411cbf981
commit 7ed478eb0e
6 changed files with 17 additions and 9 deletions

View File

@@ -352,14 +352,14 @@ export function ProfileView() {
<div className="border-b border-border">
{/* Banner */}
{profile?.banner ? (
<div className="relative h-36 bg-bg-raised overflow-hidden">
<div className="relative h-44 bg-bg-raised overflow-hidden">
{!bannerLoaded && (
<div className="absolute inset-0 bg-bg-raised animate-pulse" />
)}
<img
src={profile.banner}
alt=""
className="w-full h-full object-cover cursor-pointer hover:opacity-90 transition-opacity"
className="w-full h-full object-cover object-[center_30%] cursor-pointer hover:opacity-90 transition-opacity"
onClick={() => setBannerLightbox(true)}
onLoad={() => setBannerLoaded(true)}
onError={(e) => { (e.target as HTMLImageElement).style.display = "none"; }}