refactor: improve editor overflow

This commit is contained in:
Carlos Valente
2025-03-01 22:02:45 +01:00
committed by Carlos Valente
parent 6ca4bfc363
commit 718a6ad2b7
2 changed files with 7 additions and 2 deletions
@@ -2,6 +2,7 @@ import { useEffect, useState } from 'react';
import { isOntimeEvent, OntimeEvent } from 'ontime-types'; import { isOntimeEvent, OntimeEvent } from 'ontime-types';
import useRundown from '../../../common/hooks-query/useRundown'; import useRundown from '../../../common/hooks-query/useRundown';
import { cx } from '../../../common/utils/styleUtils';
import EventEditor from './EventEditor'; import EventEditor from './EventEditor';
@@ -37,7 +38,7 @@ export default function CuesheetEventEditor(props: CuesheetEventEditorProps) {
} }
return ( return (
<div className={style.eventEditor} data-testid='editor-container'> <div className={cx([style.eventEditor, style.inModal])} data-testid='editor-container'>
<EventEditor event={event} /> <EventEditor event={event} />
</div> </div>
); );
@@ -1,8 +1,12 @@
.eventEditor { .eventEditor {
max-height: 80vh; max-height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow-x: auto; overflow-x: auto;
&.inModal {
max-height: 80vh;
}
} }
.content { .content {