mirror of
https://github.com/hoornet/vega.git
synced 2026-05-07 04:39:12 -07:00
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:
@@ -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"; }}
|
||||
|
||||
Reference in New Issue
Block a user