mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-15 21:24:55 -05:00
revert: IAIScrollArea
This commit is contained in:
committed by
psychedelicious
parent
2cee8bebb2
commit
f8bb650cc1
@@ -0,0 +1,22 @@
|
||||
import { OverlayScrollbarsComponent } from 'overlayscrollbars-react';
|
||||
import { PropsWithChildren, memo } from 'react';
|
||||
const OverlayScrollable = (props: PropsWithChildren) => {
|
||||
return (
|
||||
<OverlayScrollbarsComponent
|
||||
defer
|
||||
style={{ height: '100%', width: '100%' }}
|
||||
options={{
|
||||
scrollbars: {
|
||||
visibility: 'auto',
|
||||
autoHide: 'move',
|
||||
autoHideDelay: 1300,
|
||||
theme: 'os-theme-dark',
|
||||
},
|
||||
overflow: { x: 'hidden' },
|
||||
}}
|
||||
>
|
||||
{props.children}
|
||||
</OverlayScrollbarsComponent>
|
||||
);
|
||||
};
|
||||
export default memo(OverlayScrollable);
|
||||
Reference in New Issue
Block a user