From 25bb8f66a25bcb488b84c2b3fd0925417a688926 Mon Sep 17 00:00:00 2001 From: kenny lopez Date: Thu, 27 Aug 2026 09:28:53 +0100 Subject: [PATCH 1/2] Fade expanded video controls on hover Signed-off-by: kenny lopez --- .../shared/styles/globals/video-review.css | 23 ++++++++ desktop/src/shared/ui/VideoPlayer.tsx | 4 +- desktop/tests/e2e/video-attachment.spec.ts | 55 +++++++++++++++++++ 3 files changed, 80 insertions(+), 2 deletions(-) diff --git a/desktop/src/shared/styles/globals/video-review.css b/desktop/src/shared/styles/globals/video-review.css index e3b44ac516b..6e810ba7f9d 100644 --- a/desktop/src/shared/styles/globals/video-review.css +++ b/desktop/src/shared/styles/globals/video-review.css @@ -2,6 +2,29 @@ The review dialog uses the shadcn "neutral" dark palette regardless of the app theme. Applied together with `.dark` on the portal root; this block is intentionally unlayered so it overrides the layered theme vars. */ +.video-review-controls { + transition: opacity 150ms cubic-bezier(0.23, 1, 0.32, 1); +} + +@media (hover: hover) and (pointer: fine) { + .video-review-media-surface .video-review-controls { + pointer-events: none; + opacity: 0; + } + + .video-review-media-surface:hover .video-review-controls, + .video-review-media-surface:focus-within .video-review-controls { + pointer-events: auto; + opacity: 1; + } +} + +@media (prefers-reduced-motion: reduce) { + .video-review-controls { + transition: none; + } +} + .video-review-theme { --background: 0 0% 3.9%; --foreground: 0 0% 98%; diff --git a/desktop/src/shared/ui/VideoPlayer.tsx b/desktop/src/shared/ui/VideoPlayer.tsx index 74703dc5e8c..71753104014 100644 --- a/desktop/src/shared/ui/VideoPlayer.tsx +++ b/desktop/src/shared/ui/VideoPlayer.tsx @@ -1697,7 +1697,7 @@ function VideoReviewDialog({ ref={videoAreaRef} >
@@ -1764,7 +1764,7 @@ function VideoReviewDialog({ visible={!hasVisibleFrame} />
-
+