Skip to content

🎥 Make videos programmatically with React

`@remotion/studio`: Align Explorer item widths (#10631)

Jonny Burger56cfc9ad9902
diff --git a/packages/studio/src/components/AssetSelectorItem.tsx b/packages/studio/src/components/AssetSelectorItem.tsx
index 54b9aaff7f..1b010f88b4 100644
--- a/packages/studio/src/components/AssetSelectorItem.tsx
+++ b/packages/studio/src/components/AssetSelectorItem.tsx
@@ -67,11 +67,10 @@ const itemStyle: React.CSSProperties = {
alignItems: 'center',
marginBottom: 1,
marginLeft: 4,
- marginRight: 4,
appearance: 'none',
border: 'none',
borderRadius: 4,
- width: 'calc(100% - 8px)',
+ width: 'calc(100% - 4px)',
textAlign: 'left',
backgroundColor: BACKGROUND,
height: COMPACT_CONTROL_ROW_HEIGHT,
diff --git a/packages/studio/src/components/QuickSwitcher/ExplorerQuickSwitcherTrigger.tsx b/packages/studio/src/components/QuickSwitcher/ExplorerQuickSwitcherTrigger.tsx
index f76e2937e1..68e207b72b 100644
--- a/packages/studio/src/components/QuickSwitcher/ExplorerQuickSwitcherTrigger.tsx
+++ b/packages/studio/src/components/QuickSwitcher/ExplorerQuickSwitcherTrigger.tsx
@@ -6,13 +6,14 @@ import {SetSelectedModalContext} from '../../state/modals';
import type {QuickSwitcherMode} from './NoResults';
const quickSwitcherArea: React.CSSProperties = {
- padding: '4px 12px',
+ padding: '4px 0 4px 4px',
borderBottom: `1px solid ${BLACK_HEX}`,
+ overflowY: 'auto',
};
const quickSwitcherTrigger: React.CSSProperties = {
backgroundColor: WHITE_ALPHA_06,
- borderRadius: 5,
+ borderRadius: 4,
padding: '4px 10px',
color: LIGHT_TEXT,
fontSize: 12,
@@ -48,7 +49,7 @@ export const ExplorerQuickSwitcherTrigger: React.FC<{
}, [mode, setSelectedModal]);
return (
- <div style={quickSwitcherArea}>
+ <div style={quickSwitcherArea} className="__remotion-vertical-scrollbar">
<button
type="button"
style={quickSwitcherTrigger}