feat: public events

This commit is contained in:
cv
2021-04-26 23:21:30 +02:00
parent 004b31b5e7
commit b533d2493e
5 changed files with 246 additions and 101 deletions
@@ -91,14 +91,20 @@
justify-content: center;
}
.next {
color: #4bffabcc;
.next,
.nextDisabled {
width: max-content;
padding: 0 0.2em;
}
.next {
color: #4bffabcc;
transition: 0.3s;
}
.nextDisabled {
color: rgba(255, 255, 255, 0.17);
color: rgba(255, 255, 255, 0.07);
transition: 0.3s;
}
.delayValue {
@@ -40,11 +40,6 @@ export default function EventList(props) {
if (cursor == null) return;
eventsHandler('add', { type: 'block', order: cursor + 1 });
},
'Alt+KeyN': (event) => {
event.preventDefault();
if (cursor == null) return;
if (events[cursor].type === 'event') setNext(cursor);
},
});
if (cursor > events.length - 1) setCursor(events.length - 1);
return () => {