Block all pointer interactions during Blobbi overstimulation phase

Add a transparent fullscreen overlay (fixed, inset 0, z-index 99999) that
renders only while phase === 'blocked'. This prevents clicks on buttons,
links, inputs, feeds, menus, etc. while Blobbi is overwhelmed. The overlay
is removed automatically when the blocked phase ends.
This commit is contained in:
filemon
2026-04-18 01:47:32 -03:00
parent 7768588dbd
commit 12c19ac4c2
@@ -341,6 +341,18 @@ export function BlobbiCompanionLayer() {
onItemUse={handleItemUse}
isItemOnCooldown={isItemOnCooldown}
/>
{/* Global click shield while Blobbi is in blocked (overstimulated) phase */}
{isOverstimBlocked && (
<div
aria-hidden
style={{
position: 'fixed',
inset: 0,
zIndex: 99999,
pointerEvents: 'all',
}}
/>
)}
</div>
);
}