changed styles to tailwind

This commit is contained in:
Андрей Бабушкин 2025-05-05 17:18:03 +02:00
parent 0eb13a3091
commit 880f724bac
2 changed files with 2 additions and 28 deletions

View file

@ -4,9 +4,7 @@ import {
MobilePlayerContext,
} from 'Components/Session/playerContext';
import { observer } from 'mobx-react-lite';
import stl from './timeline.module.css';
import { getTimelinePosition } from './getTimelinePosition';
import classNames from 'classnames';
import { useStore } from '@/mstore';
function EventsList() {
@ -41,9 +39,7 @@ function EventsList() {
<div
/* @ts-ignore TODO */
key={`${e.key}_${e.time}`}
className={classNames(
`absolute w-[2px] h-[10px] z-[3] pointer-events-none ${e.isHighlighted ? 'bg-[#f0a930]' : 'bg-[#394eff]'}`,
)}
className={`absolute w-[2px] h-[10px] z-[3] pointer-events-none ${e.isHighlighted ? 'bg-[#f0a930]' : 'bg-[#394eff]'}`}
style={{ left: `${getTimelinePosition(e.time, scale)}%` }}
/>
))}
@ -63,7 +59,7 @@ function MobileEventsList() {
<div
/* @ts-ignore TODO */
key={`${e.key}_${e.time}`}
className={stl.event}
className={`absolute w-[2px] h-[10px] z-[3] pointer-events-none ${e.isHighlighted ? 'bg-[#f0a930]' : 'bg-[#394eff]'}`}
style={{ left: `${getTimelinePosition(e.time, scale)}%` }}
/>
))}

View file

@ -49,28 +49,6 @@
z-index: 2;
}
.event {
position: absolute;
width: 2px;
height: 10px;
background: $main;
z-index: 3;
pointer-events: none;
/* top: 0; */
/* bottom: 0; */
/* &:hover {
width: 10px;
height: 10px;
margin-left: -6px;
z-index: 1;
};*/
}
.event__highlighted {
background: #f0a930;
}
/* .event.click, .event.input {
background: $green;
}