From bdd560b30901cf7528398dcfc85ab88eaa93de48 Mon Sep 17 00:00:00 2001 From: Frank Rousseau Date: Mon, 6 Jan 2025 17:45:29 +0100 Subject: [PATCH] [qa] code scrub --- src/components/mixins/annotation.js | 3 +-- src/components/previews/VideoProgress.vue | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/mixins/annotation.js b/src/components/mixins/annotation.js index 3648e88f3..82b0824f4 100644 --- a/src/components/mixins/annotation.js +++ b/src/components/mixins/annotation.js @@ -45,7 +45,7 @@ export const annotationMixin = { notSave: false, pencilColor: '#ff3860', pencilWidth: 'big', - textColor: '#ff3860', + textColor: '#ff3860' } }, @@ -682,7 +682,6 @@ export const annotationMixin = { this.fabricCanvas.freeDrawingBrush.width = strokeWidth }, - /* * Reset pencil configuration to the last saved preferences. */ diff --git a/src/components/previews/VideoProgress.vue b/src/components/previews/VideoProgress.vue index 41cc9bca7..30da632f9 100644 --- a/src/components/previews/VideoProgress.vue +++ b/src/components/previews/VideoProgress.vue @@ -239,8 +239,7 @@ export default { frameNumberStyle() { const frameHeight = 100 const height = frameHeight + 30 - let frameWidth = 150 - frameWidth = Math.ceil(frameHeight * this.videoRatio) + const frameWidth = Math.ceil(frameHeight * this.videoRatio) const width = frameWidth + 10 const left = Math.min( Math.max(this.frameNumberLeftPosition - frameWidth / 2, 0),