fix(video): keep scroll position and stop pause from going fullscreen

- VideoBubble: stopPropagation on the inline <video> element so
  clicks on the native controls (play/pause/seek) don't bubble up
  to the outer tile, which previously promoted any control click
  into a fullscreen overlay.
- VideoPlayer: replace overflow:hidden body lock with the iOS-safe
  position-fixed + scroll-restore pattern. Closing the fullscreen
  player now returns the page to the exact scroll offset it had,
  instead of snapping back to the top on iOS Safari.
This commit is contained in:
TerryM
2026-05-30 01:09:19 +08:00
parent f7230de12b
commit 6b42981419
2 changed files with 29 additions and 3 deletions

View File

@@ -87,6 +87,7 @@ function VideoAttachmentCard({
controls
playsInline
autoPlay
onClick={(e) => e.stopPropagation()}
className="absolute inset-0 h-full w-full"
/>
<AttachmentDownloadPill