🎥 Make videos programmatically with React
fix(cli): fix design of long timeline sequence name
Antoine Caron313c130edbed
diff --git a/packages/cli/src/editor/components/Timeline/TimelineListItem.tsx b/packages/cli/src/editor/components/Timeline/TimelineListItem.tsxindex 205face34c..ae3c000f03 100644--- a/packages/cli/src/editor/components/Timeline/TimelineListItem.tsx+++ b/packages/cli/src/editor/components/Timeline/TimelineListItem.tsx@@ -25,6 +25,14 @@ const textStyle: React.CSSProperties = {fontSize: 13,};+const truncateText : React.CSSProperties = {+ overflow: 'hidden',+ fontSize: 13,+ height: 20,+ whiteSpace: 'nowrap',+ textOverflow: 'ellipsis',+};+const outer: React.CSSProperties = {height: TIMELINE_LAYER_HEIGHT + TIMELINE_BORDER * 2,color: 'white',@@ -150,7 +158,9 @@ export const TimelineListItem: React.FC<{</>) : null}<div style={textStyle}>- {text || 'Untitled'}+ <div style={truncateText}>+ {text || 'Untitled'}+ </div><TimelineSequenceFrameduration={sequence.duration}from={sequence.from}