refactor: inline quick add

This commit is contained in:
Carlos Valente
2025-07-08 07:24:41 +02:00
committed by Carlos Valente
parent a1ad1d47a4
commit 1fc6f9b3ea
18 changed files with 235 additions and 107 deletions
@@ -9,7 +9,7 @@
background-color: color-mix(in srgb, var(--user-bg, $block-bg) 15%, transparent 85%);
display: grid;
grid-template-columns: 2rem 8rem 1fr auto auto;
grid-template-columns: 2rem 8rem 1fr auto;
align-items: center;
height: $secondary-block-height;
gap: 0.5rem;
@@ -1,5 +1,5 @@
import { MouseEvent, useCallback, useRef } from 'react';
import { IoCheckmarkDone, IoClose, IoReorderTwo } from 'react-icons/io5';
import { IoClose, IoReorderTwo } from 'react-icons/io5';
import { useSortable } from '@dnd-kit/sortable';
import { CSS } from '@dnd-kit/utilities';
import { EntryId } from 'ontime-types';
@@ -92,9 +92,6 @@ export default function RundownMilestone({ colour, cue, entryId, hasCursor, titl
</div>
<MilestoneTextInput field='cue' initialValue={cue} placeholder='Cue' submitHandler={handleUpdate} />
<MilestoneTextInput field='title' initialValue={title} placeholder='Title' submitHandler={handleUpdate} />
<Button variant='ghosted-white'>
<IoCheckmarkDone /> Done
</Button>
<Button variant='ghosted-destructive' onClick={handleDelete}>
<IoClose /> Cancel
</Button>