diff options
author | mehekj <mehek.jethani@gmail.com> | 2022-08-10 20:02:03 -0400 |
---|---|---|
committer | mehekj <mehek.jethani@gmail.com> | 2022-08-10 20:02:03 -0400 |
commit | 3c08d65a63e04d421954193742a49d539b842c20 (patch) | |
tree | 0a5cef1be5330fd614e2114c1af7246cae9690fc /src/client/views | |
parent | 513dcaa2d8c86f1cb5236ce89062cace6f418d1b (diff) |
stacked timeline zoom overflow and hover timecode position fixed
Diffstat (limited to 'src/client/views')
-rw-r--r-- | src/client/views/collections/CollectionStackedTimeline.scss | 1 | ||||
-rw-r--r-- | src/client/views/collections/CollectionStackedTimeline.tsx | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionStackedTimeline.scss b/src/client/views/collections/CollectionStackedTimeline.scss index 6611477e5..c296e1172 100644 --- a/src/client/views/collections/CollectionStackedTimeline.scss +++ b/src/client/views/collections/CollectionStackedTimeline.scss @@ -2,6 +2,7 @@ .collectionStackedTimeline-timelineContainer { height: 100%; + position: absolute; overflow-x: auto; overflow-y: hidden; border: none; diff --git a/src/client/views/collections/CollectionStackedTimeline.tsx b/src/client/views/collections/CollectionStackedTimeline.tsx index 48e3abbc7..2543624d3 100644 --- a/src/client/views/collections/CollectionStackedTimeline.tsx +++ b/src/client/views/collections/CollectionStackedTimeline.tsx @@ -668,7 +668,7 @@ export class CollectionStackedTimeline extends CollectionSubView<CollectionStack )} </div> </div> - <div className="timeline-hoverUI" style={{ left: `calc(${((this._hoverTime - this.clipStart) / this.clipDuration) * 100}%` }}> + <div className="timeline-hoverUI" style={{ left: ((this._hoverTime - this.clipStart) / this.clipDuration) * this.timelineContentWidth - this._scroll }}> <div className="hoverTime">{formatTime(this._hoverTime - this.clipStart)}</div> {this._thumbnail && <img className="videoBox-thumbnail" src={this._thumbnail} />} </div> |