feat: click-outside dismiss and clean overlay styling

- Add invisible backdrop (z-index 99) behind expanded overlay to
  dismiss on outside click
- Remove background/padding from overlay wrapper so GroupCard
  renders without visible extra border
- Use drop-shadow filter instead of box-shadow for natural card
  shadow

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-16 14:04:26 +02:00
parent 911ba591a9
commit b57fe875f3
2 changed files with 12 additions and 5 deletions

View File

@@ -722,6 +722,8 @@ export default function AgentHealth() {
onNavigate={() => navigate(`/runtime/${group.appId}`)}
/>
{expandedApps.has(group.appId) && (
<>
<div className={styles.overlayBackdrop} onClick={() => animateToggle(group.appId)} />
<div
ref={(el) => {
if (!el) return;
@@ -758,7 +760,7 @@ export default function AgentHealth() {
/>
<button
className={styles.collapseBtn}
onClick={() => animateToggle(group.appId)}
onClick={(e) => { e.stopPropagation(); animateToggle(group.appId); }}
title="Collapse"
>
<ChevronDown size={14} />
@@ -805,6 +807,7 @@ export default function AgentHealth() {
/>
</GroupCard>
</div>
</>
)}
</div>
))}