feat: table mode in editor

This commit is contained in:
Carlos Valente
2025-12-21 17:04:24 +01:00
committed by Carlos Valente
parent e5c5ec18d3
commit 0de55e74a8
17 changed files with 405 additions and 41 deletions
@@ -15,3 +15,14 @@
}
}
}
.delayRowHidden {
visibility: hidden;
td {
padding: 0;
height: 1px;
line-height: 1px;
font-size: 0;
}
}
@@ -14,7 +14,16 @@ function DelayRow({ duration, injectedStyles, ...virtuosoProps }: DelayRowProps)
const hideDelays = usePersistedCuesheetOptions((state) => state.hideDelays);
if (hideDelays || duration === 0) {
return null;
return (
<tr
className={`${style.delayRow} ${style.delayRowHidden}`}
data-testid='cuesheet-delay-hidden'
style={injectedStyles}
{...virtuosoProps}
>
<td />
</tr>
);
}
const delayTime = millisToDelayString(duration, 'expanded');