加入滚动区域设置。

This commit is contained in:
徐涛 2025-01-06 15:37:37 +08:00
parent d4d821c53c
commit fc9a486087

View File

@ -7,6 +7,7 @@ import { ColorPicker } from '../components/ColorPicker';
import { FlexColorStand } from '../components/FlexColorStand'; import { FlexColorStand } from '../components/FlexColorStand';
import { HSegmentedControl } from '../components/HSegmentedControl'; import { HSegmentedControl } from '../components/HSegmentedControl';
import { LabeledPicker } from '../components/LabeledPicker'; import { LabeledPicker } from '../components/LabeledPicker';
import { ScrollArea } from '../components/ScrollArea';
import { currentPickedColor } from '../stores/colors'; import { currentPickedColor } from '../stores/colors';
import styles from './Tones.module.css'; import styles from './Tones.module.css';
@ -42,6 +43,7 @@ export function Tones() {
<h3>Color Tones</h3> <h3>Color Tones</h3>
<p>By regularly changing the color hue to generate a series of light and dark colors.</p> <p>By regularly changing the color hue to generate a series of light and dark colors.</p>
</header> </header>
<ScrollArea enableY>
<section className={styles.explore_section}> <section className={styles.explore_section}>
<aside className={styles.function_side}> <aside className={styles.function_side}>
<div> <div>
@ -102,6 +104,7 @@ export function Tones() {
</div> </div>
</div> </div>
</section> </section>
</ScrollArea>
</div> </div>
); );
} }