Skip to content

Commit c9a2acb

Browse files
committed
re-wrap with custom-scroll
1 parent e60d6e1 commit c9a2acb

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

src/App.css

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
}
88

99
.app-root {
10+
max-height: calc(100vh - 70px);
1011
max-width: 900px;
1112
margin: 0 auto;
1213
padding-top: 90px;

src/App.tsx

+17-14
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
import "./App.css";
22
import { DemoComp } from "./example/demoComp.tsx";
3+
import { CustomScroll } from "./customScroll.tsx";
34

45
export const App = () => {
56
return (
6-
<div data-testid="app-root" className="app-root">
7-
<div className="demo-title">React-Custom-Scroll Demo page</div>
8-
<div className="demo-subtitle">
9-
react-custom-scroll lets you design unique scrollbars without
10-
compromising on performance. It preserves the browser's native scrolling
11-
mechanism, ensuring a smooth, familiar user experience. Its hover design
12-
means no content is obscured, offering a consistent look across browsers
13-
and operating systems.
7+
<CustomScroll>
8+
<div data-testid="app-root" className="app-root">
9+
<div className="demo-title">React-Custom-Scroll Demo page</div>
10+
<div className="demo-subtitle">
11+
react-custom-scroll lets you design unique scrollbars without
12+
compromising on performance. It preserves the browser's native
13+
scrolling mechanism, ensuring a smooth, familiar user experience. Its
14+
hover design means no content is obscured, offering a consistent look
15+
across browsers and operating systems.
16+
</div>
17+
<DemoComp demoType="compare-with-native" descriptionSide="left" />
18+
<DemoComp demoType="crazy-designer" descriptionSide="right" />
19+
<DemoComp demoType="dynamic-content" descriptionSide="left" />
20+
<DemoComp demoType="allow-outer-scroll" descriptionSide="right" />
21+
<DemoComp demoType="flex" descriptionSide="left" />
1422
</div>
15-
<DemoComp demoType="compare-with-native" descriptionSide="left" />
16-
<DemoComp demoType="crazy-designer" descriptionSide="right" />
17-
<DemoComp demoType="dynamic-content" descriptionSide="left" />
18-
<DemoComp demoType="allow-outer-scroll" descriptionSide="right" />
19-
<DemoComp demoType="flex" descriptionSide="left" />
20-
</div>
23+
</CustomScroll>
2124
);
2225
};

0 commit comments

Comments
 (0)