From 88d84fae1e949e06c34ad38e181421591a612988 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 10 Mar 2026 18:48:54 +0200 Subject: [PATCH 01/40] refactor(video_player): extract to separate file --- apps/client/src/widgets/type_widgets/File.tsx | 12 +----------- .../src/widgets/type_widgets/file/Video.css | 3 +++ .../src/widgets/type_widgets/file/Video.tsx | 15 +++++++++++++++ 3 files changed, 19 insertions(+), 11 deletions(-) create mode 100644 apps/client/src/widgets/type_widgets/file/Video.css create mode 100644 apps/client/src/widgets/type_widgets/file/Video.tsx diff --git a/apps/client/src/widgets/type_widgets/File.tsx b/apps/client/src/widgets/type_widgets/File.tsx index 0d5b038608..a13d765ed7 100644 --- a/apps/client/src/widgets/type_widgets/File.tsx +++ b/apps/client/src/widgets/type_widgets/File.tsx @@ -6,6 +6,7 @@ import { getUrlForDownload } from "../../services/open"; import Alert from "../react/Alert"; import { useNoteBlob } from "../react/hooks"; import PdfPreview from "./file/Pdf"; +import VideoPreview from "./file/Video"; import { TypeWidgetProps } from "./type_widget"; const TEXT_MAX_NUM_CHARS = 5000; @@ -42,17 +43,6 @@ function TextPreview({ content }: { content: string }) { ); } -function VideoPreview({ note }: { note: FNote }) { - return ( -