🎥 Make videos programmatically with React
update timeline slider style
Jonny Burgerd5c077744572
diff --git a/packages/bundler/src/setup-environment.ts b/packages/bundler/src/setup-environment.tsindex fb74a9309b..89dc72e93b 100644--- a/packages/bundler/src/setup-environment.ts+++ b/packages/bundler/src/setup-environment.ts@@ -48,4 +48,22 @@ Internals.CSSUtils.injectCSS(`.__remotion-horizontal-scrollbar:hover::-webkit-scrollbar-thumb:hover {background-color: rgba(0, 0, 0, 0.8);}++ .__remotion-timeline-slider {+ appearance: none;+ width: 100px;+ border-radius: 3px;+ height: 6px;+ background-color: rgba(255, 255, 255, 0.1);+ accent-color: #ffffff;+ }++ .__remotion-timeline-slider::-moz-range-thumb {+ width: 14px;+ height: 14px;+ border-radius: 50%;+ background-color: #ffffff;+ appearance: none;+ }+`);diff --git a/packages/cli/src/editor/components/Timeline/TimelineZoomControls.tsx b/packages/cli/src/editor/components/Timeline/TimelineZoomControls.tsxindex 82b955e03d..265d126dec 100644--- a/packages/cli/src/editor/components/Timeline/TimelineZoomControls.tsx+++ b/packages/cli/src/editor/components/Timeline/TimelineZoomControls.tsx@@ -15,6 +15,7 @@ const container: React.CSSProperties = {color: 'black',flexDirection: 'row',display: 'flex',+ alignItems: 'center',};const buttonStyle: React.CSSProperties = {@@ -26,11 +27,6 @@ const iconStyle: React.CSSProperties = {width: 14,};-const slider: React.CSSProperties = {- width: 60,- accentColor: 'var(--blue)',-};-export const TimelineZoomControls: React.FC = () => {const {setZoom, zoom} = useContext(TimelineZoomCtx);const {tabIndex} = useZIndex();@@ -78,7 +74,7 @@ export const TimelineZoomControls: React.FC = () => {value={zoom}max={TIMELINE_MAX_ZOOM}onChange={onChange}- style={slider}+ className="__remotion-timeline-slider"tabIndex={tabIndex}/><Spacing x={0.5} />