diff --git a/frontend/app/components/Session_/Player/Controls/NotesList.tsx b/frontend/app/components/Session_/Player/Controls/NotesList.tsx
index 8d99abd62..f95ceaf8f 100644
--- a/frontend/app/components/Session_/Player/Controls/NotesList.tsx
+++ b/frontend/app/components/Session_/Player/Controls/NotesList.tsx
@@ -3,35 +3,59 @@ import { Icon } from 'UI';
import { useStore } from "App/mstore";
import { observer } from 'mobx-react-lite'
import { getTimelinePosition } from './getTimelinePosition'
+import {Tooltip} from 'antd';
function NotesList({ scale }: { scale: number }) {
const { notesStore } = useStore();
const notes = notesStore.sessionNotes;
const visibleNotes = React.useMemo(() => {
- return notes.filter(note => note.timestamp > 0)
- }, [notes.length])
+ return notes.filter(note => note.startAt >= 0 && note.endAt > note.startAt); // Ensure valid highlights
+ }, [notes.length]);
+
+
return (
<>
- {visibleNotes.map((note) => (
-
-
-
- ))}
+ {visibleNotes.map((note) => {
+ const startPos = getTimelinePosition(note.startAt, scale);
+ const endPos = getTimelinePosition(note.endAt, scale);
+ const highlightWidth = endPos - startPos;
+ const iconPos = startPos + highlightWidth / 2;
+
+ return (
+
+
+
+
+
+
+
+ );
+ })}
>
);
}
-export default observer(NotesList)
\ No newline at end of file
+export default observer(NotesList);
\ No newline at end of file
diff --git a/frontend/app/components/Session_/Player/Controls/timeline.module.css b/frontend/app/components/Session_/Player/Controls/timeline.module.css
index f674c1ce1..4830dac96 100644
--- a/frontend/app/components/Session_/Player/Controls/timeline.module.css
+++ b/frontend/app/components/Session_/Player/Controls/timeline.module.css
@@ -215,7 +215,6 @@
}
}
-
.stripes {
background-size: 30px 30px;
width: 100%;
@@ -225,6 +224,14 @@
animation-direction: reverse;
}
+.saved-highlight {
+ position: absolute;
+ height: 10px;
+ background: rgba(252, 193, 0, 0.4);
+ z-index: 2;
+ pointer-events: none;
+}
+
@keyframes animate-stripes {
0% {
background-position: 0 0;