fix: auto-recover from stale-bundle chunk errors; responsive touch-ups
- The "This page couldn't load" after a redeploy was a stale bundle: a tab open across a deploy requests JS chunks that no longer exist (ChunkLoadError). Added a global error/unhandledrejection guard that reloads once to fetch the fresh bundle (sessionStorage-guarded against loops, cleared after a healthy run). - Reaction tray width → w-[min(270px,86vw)] so it never overflows narrow phones. Verified: tsc + next build pass; web image rebuilt on :1500. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -822,7 +822,7 @@ function Reactions() {
|
||||
initial={{ opacity: 0, y: 12, scale: 0.95 }}
|
||||
animate={{ opacity: 1, y: 0, scale: 1 }}
|
||||
exit={{ opacity: 0, y: 12, scale: 0.95 }}
|
||||
className="absolute bottom-20 ltr:right-4 rtl:left-4 z-50 glass rounded-2xl p-2 w-[270px]"
|
||||
className="absolute bottom-20 ltr:right-4 rtl:left-4 z-50 glass rounded-2xl p-2 w-[min(270px,86vw)]"
|
||||
>
|
||||
<div className="flex gap-1 p-1 rounded-xl bg-navy-900/70 mb-2">
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user