Skip to content

🎥 Make videos programmatically with React

improve scrollbars

Jonny Burger2bcf71506ab9
diff --git a/packages/bundler/src/setup-environment.ts b/packages/bundler/src/setup-environment.ts
index 89dc72e93b..f67034527d 100644
--- a/packages/bundler/src/setup-environment.ts
+++ b/packages/bundler/src/setup-environment.ts
@@ -30,10 +30,10 @@ Internals.CSSUtils.injectCSS(`
background-color: rgba(0, 0, 0, 0.0);
}
.__remotion-vertical-scrollbar:hover::-webkit-scrollbar-thumb {
- background-color: rgba(0, 0, 0, 0.4);
+ background-color: rgba(0, 0, 0, 0.6);
}
.__remotion-vertical-scrollbar:hover::-webkit-scrollbar-thumb:hover {
- background-color: rgba(0, 0, 0, 0.8);
+ background-color: rgba(0, 0, 0, 1);
}
.__remotion-horizontal-scrollbar::-webkit-scrollbar {
@@ -43,10 +43,10 @@ Internals.CSSUtils.injectCSS(`
background-color: rgba(0, 0, 0, 0.0);
}
.__remotion-horizontal-scrollbar:hover::-webkit-scrollbar-thumb {
- background-color: rgba(0, 0, 0, 0.4);
+ background-color: rgba(0, 0, 0, 0.6);
}
.__remotion-horizontal-scrollbar:hover::-webkit-scrollbar-thumb:hover {
- background-color: rgba(0, 0, 0, 0.8);
+ background-color: rgba(0, 0, 0, 1);
}
.__remotion-timeline-slider {
diff --git a/packages/cli/src/editor/components/RightPanel.tsx b/packages/cli/src/editor/components/RightPanel.tsx
index e1f01021c8..95116cbcdf 100644
--- a/packages/cli/src/editor/components/RightPanel.tsx
+++ b/packages/cli/src/editor/components/RightPanel.tsx
@@ -63,7 +63,7 @@ export const RightPanel: React.FC<{}> = () => {
}
return (
- <div style={container}>
+ <div style={container} className="__remotion-vertical-scrollbar">
<PropsEditor composition={composition} />
</div>
);
diff --git a/packages/cli/src/editor/components/Timeline/TimelineScrollable.tsx b/packages/cli/src/editor/components/Timeline/TimelineScrollable.tsx
index 65359014a7..b10472e4db 100644
--- a/packages/cli/src/editor/components/Timeline/TimelineScrollable.tsx
+++ b/packages/cli/src/editor/components/Timeline/TimelineScrollable.tsx
@@ -22,7 +22,11 @@ export const TimelineScrollable: React.FC<{
}, []);
return (
- <div ref={scrollableRef} style={outer}>
+ <div
+ ref={scrollableRef}
+ style={outer}
+ className="__remotion-horizontal-scrollbar"
+ >
<div style={containerStyle}>{children}</div>
</div>
);
diff --git a/packages/example/src/Video.tsx b/packages/example/src/Video.tsx
index 9203cee3b0..34c9713c50 100644
--- a/packages/example/src/Video.tsx
+++ b/packages/example/src/Video.tsx
@@ -708,7 +708,7 @@ export const Index: React.FC = () => {
defaultProps={{
vehicle: 'bus',
other: 'hi',
- abc: {def: {xyz: 'hu', pef: 'hu'}, jkl: 'sting', xyz: 'hi'},
+ abc: {def: {xyz: 'huthere', pef: 'hu'}, jkl: 'sting', xyz: 'hi'},
array: [
{a: 'a', b: 'bbbbb'},
{a: 'a', b: 'b'},