Refactor activity feed disabled UI; use plain img for hero image fix

Co-authored-by: dennis <dennis@konkol.net>
This commit is contained in:
Cursor Agent
2026-01-12 16:47:14 +00:00
parent e2616ae0f7
commit ba99889782
2 changed files with 45 additions and 31 deletions

View File

@@ -1459,20 +1459,29 @@ export default function ActivityFeed() {
// Don't render if tracking is disabled and no data
if (!isTrackingEnabled && !data) {
return (
<div className="fixed bottom-4 right-4 md:bottom-6 md:right-6 z-40 pointer-events-auto">
<div className="fixed bottom-4 right-4 md:bottom-6 md:right-6 z-40 font-sans w-[280px] sm:w-[320px] max-w-[calc(100vw-2rem)] pointer-events-none">
<motion.div
initial={{ scale: 0, opacity: 0 }}
initial={{ scale: 0.96, opacity: 0 }}
animate={{ scale: 1, opacity: 1 }}
className="bg-white/80 backdrop-blur-xl border border-white/60 rounded-2xl px-4 py-3 shadow-xl"
className="pointer-events-auto bg-white/90 backdrop-blur-2xl border border-white/60 rounded-2xl shadow-xl overflow-hidden w-full"
>
<button
onClick={toggleTracking}
className="flex items-center gap-2 text-stone-600 hover:text-stone-900 transition-colors"
title="Activity tracking is disabled. Click to enable."
>
<Activity size={16} />
<span className="text-xs font-semibold">Tracking disabled</span>
</button>
<div className="px-4 py-3 flex items-center justify-between">
<div className="flex items-center gap-3">
<Activity size={18} className="text-stone-900" />
<div className="text-left">
<h3 className="text-sm font-bold text-stone-900">Live Activity</h3>
<p className="text-[10px] text-stone-500">Tracking disabled</p>
</div>
</div>
<button
type="button"
onClick={toggleTracking}
className="text-xs font-semibold px-3 py-1.5 rounded-full bg-stone-900 text-white hover:bg-stone-800 transition-colors"
title="Enable activity tracking"
>
Enable
</button>
</div>
</motion.div>
</div>
);
@@ -1481,20 +1490,29 @@ export default function ActivityFeed() {
// If tracking disabled but we have data, show a disabled state
if (!isTrackingEnabled && data) {
return (
<div className="fixed bottom-4 right-4 md:bottom-6 md:right-6 z-40 pointer-events-auto">
<div className="fixed bottom-4 right-4 md:bottom-6 md:right-6 z-40 font-sans w-[280px] sm:w-[320px] max-w-[calc(100vw-2rem)] pointer-events-none">
<motion.div
initial={{ scale: 0, opacity: 0 }}
initial={{ scale: 0.96, opacity: 0 }}
animate={{ scale: 1, opacity: 1 }}
className="bg-white/80 backdrop-blur-xl border border-white/60 rounded-2xl px-4 py-3 shadow-xl"
className="pointer-events-auto bg-white/90 backdrop-blur-2xl border border-white/60 rounded-2xl shadow-xl overflow-hidden w-full"
>
<button
onClick={toggleTracking}
className="flex items-center gap-2 text-stone-600 hover:text-stone-900 transition-colors"
title="Activity tracking is disabled. Click to enable."
>
<Activity size={16} />
<span className="text-xs font-semibold">Tracking disabled</span>
</button>
<div className="px-4 py-3 flex items-center justify-between">
<div className="flex items-center gap-3">
<Activity size={18} className="text-stone-900" />
<div className="text-left">
<h3 className="text-sm font-bold text-stone-900">Live Activity</h3>
<p className="text-[10px] text-stone-500">Tracking disabled</p>
</div>
</div>
<button
type="button"
onClick={toggleTracking}
className="text-xs font-semibold px-3 py-1.5 rounded-full bg-stone-900 text-white hover:bg-stone-800 transition-colors"
title="Enable activity tracking"
>
Enable
</button>
</div>
</motion.div>
</div>
);