Skip to content

Commit

Permalink
🐛 close #162
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZhang73 committed Jun 1, 2022
1 parent f30eaec commit db8bf6c
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/pages/annotation/KeyframePanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
>
<q-range
class="custom-range"
:class="{'hide-right-marker': currentFocus === 'left', 'hide-left-marker': currentFocus === 'right'}"
:style="rangeStyle"
label-always
drag-range
Expand All @@ -42,10 +43,10 @@
:min="0"
:max="annotationStore.video.frames - 1"
:step="1"
:left-label-text-color="currentFocus === 'left' || currentFocus === 'range' ? 'blue-grey-1' : 'primary'"
:right-label-text-color="currentFocus === 'right' || currentFocus === 'range' ? 'blue-grey-1' : 'primary'"
:left-label-color="currentFocus === 'left' || currentFocus === 'range' ? 'primary' : 'blue-grey-1'"
:right-label-color="currentFocus === 'right' || currentFocus === 'range' ? 'primary' : 'blue-grey-1'"
left-label-text-color="blue-grey-1"
right-label-text-color="blue-grey-1"
left-label-color="primary"
right-label-color="primary"
:left-label-value="'L: ' + currentFrameRange.min + ' | ' + utils.toFixed2(utils.index2time(currentFrameRange.min)) + ' s'"
:right-label-value="'R: ' + currentFrameRange.max + ' | ' + utils.toFixed2(utils.index2time(currentFrameRange.max)) + ' s'"
:model-value="currentFrameRange"
Expand Down Expand Up @@ -388,4 +389,12 @@ const { rangeStyle } = frameIndicator()
background-size: var(--marker-bg-size);
background-repeat: no-repeat;
}
.hide-left-marker .q-slider__thumb:nth-child(3) .q-slider__pin {
display: none;
}
.hide-right-marker .q-slider__thumb:last-child .q-slider__pin {
display: none;
}
</style>

0 comments on commit db8bf6c

Please sign in to comment.