使用自定义Scroll布局组件替代浏览器默认滚动条。
This commit is contained in:
		| @@ -9,7 +9,6 @@ | |||||||
|     flex-direction: row; |     flex-direction: row; | ||||||
|     align-items: stretch; |     align-items: stretch; | ||||||
|     gap: var(--spacing-m); |     gap: var(--spacing-m); | ||||||
|     overflow-y: auto; |  | ||||||
|   } |   } | ||||||
|   .function_side { |   .function_side { | ||||||
|     display: flex; |     display: flex; | ||||||
|   | |||||||
| @@ -3,6 +3,7 @@ import { useAtom } from 'jotai'; | |||||||
| import { useState } from 'react'; | import { useState } from 'react'; | ||||||
| import { ColorPicker } from '../components/ColorPicker'; | import { ColorPicker } from '../components/ColorPicker'; | ||||||
| import { LabeledPicker } from '../components/LabeledPicker'; | import { LabeledPicker } from '../components/LabeledPicker'; | ||||||
|  | import { ScrollArea } from '../components/ScrollArea'; | ||||||
| import { VSegmentedControl } from '../components/VSegmentedControl'; | import { VSegmentedControl } from '../components/VSegmentedControl'; | ||||||
| import { ColorWheel } from '../page-components/wheels/ColorWheel'; | import { ColorWheel } from '../page-components/wheels/ColorWheel'; | ||||||
| import { currentPickedColor } from '../stores/colors'; | import { currentPickedColor } from '../stores/colors'; | ||||||
| @@ -20,6 +21,7 @@ export function Wheels() { | |||||||
|         <h3>Color Wheels</h3> |         <h3>Color Wheels</h3> | ||||||
|         <p>Choose the required color on the color wheel according to color theory.</p> |         <p>Choose the required color on the color wheel according to color theory.</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> | ||||||
| @@ -72,6 +74,7 @@ export function Wheels() { | |||||||
|             /> |             /> | ||||||
|           </div> |           </div> | ||||||
|         </section> |         </section> | ||||||
|  |       </ScrollArea> | ||||||
|     </div> |     </div> | ||||||
|   ); |   ); | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user