diff --git a/package.json b/package.json index 1d91202..b362614 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "only-refs", - "version": "0.0.5", + "version": "0.0.6", "description": "", "type": "module", "scripts": { @@ -84,3 +84,4 @@ "vitest": "^1.6.0" } } + diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 07ee6d8..65e797b 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -2283,7 +2283,7 @@ checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "only-refs" -version = "0.0.5" +version = "0.0.6" dependencies = [ "base64 0.22.1", "chrono", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 69ca4fa..e4e16f7 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "only-refs" -version = "0.0.5" +version = "0.0.6" description = "All your references in a single place" authors = ["Ngobo Ridy"] edition = "2021" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 0cbfbc8..ba8d5fa 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -7,7 +7,7 @@ }, "package": { "productName": "only-refs", - "version": "0.0.5" + "version": "0.0.6" }, "tauri": { "allowlist": { diff --git a/src/components/ViewBox/ViewBox.tsx b/src/components/ViewBox/ViewBox.tsx index 4b96692..b4018d9 100644 --- a/src/components/ViewBox/ViewBox.tsx +++ b/src/components/ViewBox/ViewBox.tsx @@ -17,6 +17,22 @@ import { ViewBoxZoom } from './ViewBoxZoom'; import { isMediaRef } from '~/lib/helper'; export const ViewBox: Component = (props) => { + let videoRef: HTMLVideoElement | undefined; + + const [videoDimensions, setVideoDimensions] = createSignal({ + width: 0, + height: 0, + }); + + const handleVideoLoadedMetadata = () => { + if (videoRef) { + setVideoDimensions({ + width: videoRef.videoWidth, + height: videoRef.videoHeight, + }); + } + }; + return ( = (props) => { diff --git a/src/components/ViewBox/ViewBoxInfo.tsx b/src/components/ViewBox/ViewBoxInfo.tsx index 60eb8c7..fac80f0 100644 --- a/src/components/ViewBox/ViewBoxInfo.tsx +++ b/src/components/ViewBox/ViewBoxInfo.tsx @@ -100,7 +100,12 @@ export const ViewBoxInfo = (props: ViewBoxInfoProps) => { /> {elapsedTime(props.metadata.created_at)} -
+

Tags

@@ -153,8 +158,7 @@ export const ViewBoxInfo = (props: ViewBoxInfoProps) => {
diff --git a/src/components/ViewBox/ViewNoteEditor.tsx b/src/components/ViewBox/ViewNoteEditor.tsx index 2eddb81..57e616d 100644 --- a/src/components/ViewBox/ViewNoteEditor.tsx +++ b/src/components/ViewBox/ViewNoteEditor.tsx @@ -55,7 +55,7 @@ export const ViewNoteEditor = (props: { })); return ( -
+