Skip to content

🎥 Make videos programmatically with React

@remotion/studio: Tighten timeline media info spacing

Jonny Burger0496b5393c71
diff --git a/packages/studio/src/components/Timeline/TimelineListItem.tsx b/packages/studio/src/components/Timeline/TimelineListItem.tsx
index 3e8de83fd2..f0e5f2e484 100644
--- a/packages/studio/src/components/Timeline/TimelineListItem.tsx
+++ b/packages/studio/src/components/Timeline/TimelineListItem.tsx
@@ -284,7 +284,7 @@ export const TimelineListItem: React.FC<{
return {
paddingLeft: getTimelineRowLeftChromeWidth(nestedDepth),
paddingRight: 8,
- paddingBottom: 4,
+ marginTop: -6,
overflow: 'hidden',
minHeight: 0,
};
diff --git a/packages/studio/src/components/Timeline/TimelineMediaInfo.tsx b/packages/studio/src/components/Timeline/TimelineMediaInfo.tsx
index 0cfc3d8f08..d8a0e2f4af 100644
--- a/packages/studio/src/components/Timeline/TimelineMediaInfo.tsx
+++ b/packages/studio/src/components/Timeline/TimelineMediaInfo.tsx
@@ -8,7 +8,7 @@ const containerStyle: React.CSSProperties = {
fontFamily: 'Arial, Helvetica, sans-serif',
color: VERY_LIGHT_TEXT,
fontSize: 12,
- lineHeight: 1.1,
+ lineHeight: 1,
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
@@ -21,6 +21,7 @@ const lineStyle: React.CSSProperties = {
textOverflow: 'ellipsis',
minWidth: 0,
fontSize: 12,
+ paddingTop: 3,
};
export const TimelineMediaInfo: React.FC<{