summaryrefslogtreecommitdiff
path: root/apps/web/src/components/editor
diff options
context:
space:
mode:
authorcreotove <creotove@gmail.com>2025-06-25 08:36:27 +0530
committercreotove <creotove@gmail.com>2025-06-25 08:36:27 +0530
commit84d206c01e1ae02d52e30e82982971436e98828c (patch)
tree7d6b870a1739c6b9605a29764d666496dd8971dd /apps/web/src/components/editor
parente8a22d99cb9cac36e65c69e3a90121e437d89d5a (diff)
downloadopencut-84d206c01e1ae02d52e30e82982971436e98828c.tar.gz
Fix: [BUG] buttons jitter left and right #67
Diffstat (limited to 'apps/web/src/components/editor')
-rw-r--r--apps/web/src/components/editor/timeline.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/web/src/components/editor/timeline.tsx b/apps/web/src/components/editor/timeline.tsx
index 0d021604..81b99747 100644
--- a/apps/web/src/components/editor/timeline.tsx
+++ b/apps/web/src/components/editor/timeline.tsx
@@ -602,9 +602,10 @@ export function Timeline() {
<div className="w-px h-6 bg-border mx-1" />
{/* Time Display */}
- <div className="text-xs text-muted-foreground font-mono px-2">
- {Math.floor(currentTime * 10) / 10}s /{" "}
- {Math.floor(duration * 10) / 10}s
+ <div className="text-xs text-muted-foreground font-mono px-2"
+ style={{ minWidth: '12ch', textAlign: 'right' }}
+ >
+ {currentTime.toFixed(1)}s / {duration.toFixed(1)}s
</div>
<div className="w-px h-6 bg-border mx-1" />