diff options
author | mehekj <mehek.jethani@gmail.com> | 2021-11-11 16:57:49 -0500 |
---|---|---|
committer | mehekj <mehek.jethani@gmail.com> | 2021-11-11 16:57:49 -0500 |
commit | 2a237ca29c11585ddf51be59be4a48c46c6d4b29 (patch) | |
tree | f9e2c500ceee8fd4f2a78ebbfad2769f8af69132 | |
parent | 97a3a38c0fb07b52e70cba459d1b92273fb57b46 (diff) |
prevent clips from becoming infinitely small
-rw-r--r-- | src/client/views/collections/CollectionStackedTimeline.tsx | 2 | ||||
-rw-r--r-- | src/client/views/nodes/AudioBox.scss | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionStackedTimeline.tsx b/src/client/views/collections/CollectionStackedTimeline.tsx index 78883b577..c5fa126a3 100644 --- a/src/client/views/collections/CollectionStackedTimeline.tsx +++ b/src/client/views/collections/CollectionStackedTimeline.tsx @@ -94,7 +94,7 @@ export class CollectionStackedTimeline extends CollectionSubView< @observable _scroll: number = 0; - get minTrimLength() { return this._timeline?.getBoundingClientRect() ? 0.05 * this.clipDuration : 0; } + get minTrimLength() { return Math.max(this._timeline?.getBoundingClientRect() ? 0.05 * this.clipDuration : 0, 0.5) } @computed get trimStart() { return this.IsTrimming !== TrimScope.None ? this._trimStart : this.clipStart; } @computed get trimDuration() { return this.trimEnd - this.trimStart; } @computed get trimEnd() { return this.IsTrimming !== TrimScope.None ? this._trimEnd : this.clipEnd; } diff --git a/src/client/views/nodes/AudioBox.scss b/src/client/views/nodes/AudioBox.scss index 76043bfd4..d40537776 100644 --- a/src/client/views/nodes/AudioBox.scss +++ b/src/client/views/nodes/AudioBox.scss @@ -117,7 +117,7 @@ } input[type="range"] { - width: 70px; + width: 50px; -webkit-appearance: none; background: none; margin: 5px; |