Skip to content

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

Merged
rafavalls merged 1 commit into
mainfrom
fix/seen-popover-clip
Nov 30, 2026
Merged

rafavalls merged 1 commit into
mainfrom
fix/seen-popover-clip

Conversation

@rafavalls

@rafavalls rafavalls commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

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.

Written for commit e024f3c. Summary will update on new commits.

View guided diff Turn on auto-fix

…ve a band of padding

The popover had p-3 around a scrolling list, so the half-cut last row was chopped 12px above the
box's bottom edge, with a strip of padding under it. Now the box (rounded, overflow-hidden) has no
padding of its own: the title has its own, and the list scrolls right to the box's bottom and sides,
its bottom padding inside the scrolled content. A cut row runs under the edge; scrolled to the end,
the last row still has 12px under it. 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).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rafavalls
rafavalls enabled auto-merge (squash) November 30, 2026 14:27
@rafavalls
rafavalls merged commit 7da1e66 into main Nov 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant