From 2718de34eb9a7efd24623db39b56ec609ce470e8 Mon Sep 17 00:00:00 2001 From: Isra Date: Wed, 12 Nov 2025 13:26:07 +0800 Subject: [PATCH] Bring back comments --- src/assets/css/index.css | 3 +++ src/components/player/atoms/settings/CaptionsView.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/assets/css/index.css b/src/assets/css/index.css index 3c704d1a..cf68b39e 100644 --- a/src/assets/css/index.css +++ b/src/assets/css/index.css @@ -428,15 +428,18 @@ input[type="range"].styled-slider.slider-progress::-ms-fill-lower { @apply brightness-[500]; } +/* Image fade-in on load */ img:not(.no-fade):not([src=""]) { opacity: 0; transition: opacity 0.8s ease-in-out; } +/* Fade in when image has loaded class */ img.loaded:not(.no-fade) { opacity: 1; } +/* For images that are already cached/loaded, show them immediately */ img[complete]:not(.no-fade):not([src=""]) { opacity: 1; } diff --git a/src/components/player/atoms/settings/CaptionsView.tsx b/src/components/player/atoms/settings/CaptionsView.tsx index a9ff591c..16040b65 100644 --- a/src/components/player/atoms/settings/CaptionsView.tsx +++ b/src/components/player/atoms/settings/CaptionsView.tsx @@ -411,7 +411,7 @@ export function CaptionsView({ }; try { - await navigator.clipboard.writeText(JSON.stringify(copyData, null, 2)); + await navigator.clipboard.writeText(JSON.stringify(copyData)); // Could add a toast notification here if needed } catch (err) { console.error("Failed to copy subtitle data:", err);