소스 검색

Minor bugfixes

Martin Ziegler 9 달 전
부모
커밋
06d1780fd8
3개의 변경된 파일12개의 추가작업 그리고 1개의 파일을 삭제
  1. 11 0
      frontend/src/components/TimelapseViewer.tsx
  2. 0 0
      static/assets/index-C2974G18.js
  3. 1 1
      static/index.html

+ 11 - 0
frontend/src/components/TimelapseViewer.tsx

@@ -25,6 +25,17 @@ export function TimelapseViewer({ src, title, downloadFilename, onClose }: Timel
     }
   }, [playbackRate]);
 
+  // Close on Escape key
+  useEffect(() => {
+    const handleKeyDown = (e: KeyboardEvent) => {
+      if (e.key === 'Escape') {
+        onClose();
+      }
+    };
+    window.addEventListener('keydown', handleKeyDown);
+    return () => window.removeEventListener('keydown', handleKeyDown);
+  }, [onClose]);
+
   useEffect(() => {
     const video = videoRef.current;
     if (!video) return;

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
static/assets/index-C2974G18.js


+ 1 - 1
static/index.html

@@ -7,7 +7,7 @@
     <link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png" />
     <link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png" />
     <link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png" />
-    <script type="module" crossorigin src="/assets/index-0UQnyYo8.js"></script>
+    <script type="module" crossorigin src="/assets/index-C2974G18.js"></script>
     <link rel="stylesheet" crossorigin href="/assets/index-DJNRCg8M.css">
   </head>
   <body>

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.