fix comment

This commit is contained in:
gantiro
2025-07-15 23:26:56 +07:00
parent 5fc06257f2
commit 8bfc91e62e
2 changed files with 8 additions and 3 deletions
@@ -83,12 +83,16 @@ export function PropertiesPanel() {
); );
if (mediaItem?.type === "audio") { if (mediaItem?.type === "audio") {
return <AudioProperties key={elementId} element={element} />; return (
<div key={elementId}>
<AudioProperties element={element} />
</div>
);
} }
return ( return (
<div key={elementId}> <div key={elementId}>
<MediaProperties key={elementId} element={element} /> <MediaProperties element={element} />
</div> </div>
); );
} }
@@ -1,3 +1,4 @@
import { TIMELINE_CONSTANTS } from "@/constants/timeline-constants";
import { TimelineCanvasRulerProps } from "@/types/timeline"; import { TimelineCanvasRulerProps } from "@/types/timeline";
import React, { useRef, useEffect } from "react"; import React, { useRef, useEffect } from "react";
@@ -19,7 +20,7 @@ export default function TimelineCanvasRuler({
ctx.clearRect(0, 0, width, height); ctx.clearRect(0, 0, width, height);
const pixelsPerSecond = 50 * zoomLevel; const pixelsPerSecond = TIMELINE_CONSTANTS.PIXELS_PER_SECOND * zoomLevel;
const getTimeInterval = () => { const getTimeInterval = () => {
if (pixelsPerSecond >= 200) return 0.1; if (pixelsPerSecond >= 200) return 0.1;