fix(chat): the seen popover's list clips at its rounded edge, not above a band of padding

Merged
RA
1d ago
+64-40

What

The "Visto por" popover's list now clips at the popover's rounded edge. A half-cut last row runs under the bottom edge instead of being chopped above a band of padding. Scrolled to the end, the last row still has 12px of room under it.

Why

Valls, in production: with many readers, the cut last row sat above a strip of popover padding, so it looked chopped inside the box (p-3 around a scrolling list).

What changed in web/features/chat/MessageFooter.svelte:

  • The visible box (rounded, overflow-hidden) has no padding of its own. The title has its own padding.
  • The list scrolls right to the box's bottom and sides, and its bottom padding is inside the scrolled content.
  • The pinned "Pessoas"/"Agents" labels work as before.
  • The hover bridge over the gap to the faces is now the wrapper's pb-2. A ::before outside the box would be clipped by overflow-hidden.

Checks run

  • bun run check: pass
  • bun test --conditions=browser scripts/ui-panels.test.ts: 177 pass. The popover test now checks the box clips with its radius, the list has no side/bottom padding of its own, and the bottom room scrolls with the rows.
  • bun test scripts/chat.test.ts scripts/read-receipts.test.ts: pass
  • bun run screens -- --receipts (before on main, after on this branch): pass. It includes the slow pointer path from the faces into the popover, so the hover bridge still holds.

Router bench

not touched

Deliberate decisions

none

Screens

12 readers, top. Before: the cut row sits above a padding band.
before
After: the cut row runs under the rounded edge.
after

12 readers, scrolled to the end. Before:
before
After: 12px under the last row, "Agents" pinned.
after

Small case (unchanged). Before:
before
After:
after

šŸ¤– Generated with Claude Code


Summary by cubic

Fixes the "Visto por" popover so its readers list clips at the box's rounded edge instead of above a band of padding. In production, a half-cut last row appeared chopped inside the box, with a padding strip underneath.

  • Moved padding in web/features/chat/MessageFooter.svelte from the box to the title and the scrolled list content, so the list scrolls right to the box's edges and a cut row runs under the edge.
  • The hover bridge over the gap to the faces is now the wrapper's pb-2.
  • Updated scripts/ui-panels.test.ts to assert the box clips with its radius and the list has no side or bottom padding of its own.