add small gradient below timeago on event thumbnails

This commit is contained in:
Josh Hawkins 2024-02-09 11:42:22 -06:00
parent c1dfad74fd
commit 9f27da4f2c

View File

@ -20,9 +20,11 @@ export function EventThumbnail({ event, onFavorite }: EventThumbnailProps) {
onClick={(e: Event) => (onFavorite ? onFavorite(e, event) : null)}
fill={event.retain_indefinitely ? "currentColor" : "none"}
/>
<div className="absolute left-1 bottom-0 text-xs text-white">
<div className="absolute bottom-0 w-full h-6 bg-gradient-to-t from-slate-900/50 to-transparent">
<div className="absolute left-1 bottom-0 text-xs text-white w-full">
<TimeAgo time={event.start_time * 1000} dense />
</div>
</div>
</div>
);
}