chore: show existing when add file

This commit is contained in:
jialin
2025-10-23 11:52:49 +08:00
parent cc0580301e
commit a815e71bfe
25 changed files with 256 additions and 97 deletions
+3 -1
View File
@@ -20,8 +20,9 @@ export const OverlayScroller: React.FC<
maxHeight?: number;
style?: React.CSSProperties;
children: React.ReactNode;
onScroll?: (e: React.UIEvent<HTMLDivElement, UIEvent>) => void;
}
> = ({ children, maxHeight, scrollbars, oppositeTheme, style }) => {
> = ({ children, maxHeight, scrollbars, oppositeTheme, style, onScroll }) => {
const scroller = React.useRef<any>(null);
const { initialize } = useOverlayScroller({
options: {
@@ -43,6 +44,7 @@ export const OverlayScroller: React.FC<
className="overlay-scroller-wrapper"
$maxHeight={maxHeight || 200}
hidden={false}
onWheel={onScroll}
style={{
paddingInlineStart: 8,
paddingInlineEnd: 8,