aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Foiani <sotech117@Michaels-MacBook-Pro-5.local>2022-06-09 16:42:40 -0400
committerMichael Foiani <sotech117@Michaels-MacBook-Pro-5.local>2022-06-09 16:42:40 -0400
commit42fd1da5c1334803202e73c83fa1efbd7eeba96c (patch)
tree7e3fdaa9848fed651e32d29df7a9ea45bda8a766 /src
parentf52e07fb2d1355fe783f05ced76555fa9980b692 (diff)
small ui + comments
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/RecordingBox/ProgressBar.scss6
-rw-r--r--src/client/views/nodes/RecordingBox/ProgressBar.tsx11
2 files changed, 7 insertions, 10 deletions
diff --git a/src/client/views/nodes/RecordingBox/ProgressBar.scss b/src/client/views/nodes/RecordingBox/ProgressBar.scss
index 7aa241b8e..9697f8b17 100644
--- a/src/client/views/nodes/RecordingBox/ProgressBar.scss
+++ b/src/client/views/nodes/RecordingBox/ProgressBar.scss
@@ -5,7 +5,7 @@
text-align: center;
align-items: center;
- cursor: pointer;
+ cursor: default;
position: absolute;
@@ -50,10 +50,6 @@
text-align: center;
}
-// .no-transition {
-// transition-duration: 0s;
-// }
-
.segment-expanding {
border-color: red;
background-color: white;
diff --git a/src/client/views/nodes/RecordingBox/ProgressBar.tsx b/src/client/views/nodes/RecordingBox/ProgressBar.tsx
index 7aa84a70f..b1ff88ba3 100644
--- a/src/client/views/nodes/RecordingBox/ProgressBar.tsx
+++ b/src/client/views/nodes/RecordingBox/ProgressBar.tsx
@@ -255,6 +255,7 @@ export function ProgressBar(props: ProgressBarProps) {
}
+ // functions for the floating segment that tracks the cursor while grabbing it
const initDeatchSegment = (dot: HTMLDivElement, rect: DOMRect) => {
dot.classList.add("segment-selected")
dot.style.transitionDuration = '0s';
@@ -276,9 +277,9 @@ export function ProgressBar(props: ProgressBarProps) {
}
- return (
- <div className="progressbar" id="progressbar" onPointerDown={onPointerDown} ref={progressBarRef}>
- {segments}
- </div>
- )
+ return (
+ <div className="progressbar" id="progressbar" onPointerDown={onPointerDown} ref={progressBarRef}>
+ {segments}
+ </div>
+ )
} \ No newline at end of file