Skip to content

Commit

Permalink
ОНО ЖИВОЕ
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaMate committed Aug 7, 2024
1 parent 0c3a025 commit 9440b52
Show file tree
Hide file tree
Showing 4 changed files with 286 additions and 158 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const useVirtualList = function (props: UseVirtualListProps) {
);

const setIndex = useCallback<VirtualIndexSetter>((index: number) => {
console.log('set index', index);
currentIndex.current = index;
setVirtualList(
getVirtualList({ index, list, showAmount }),
Expand Down
13 changes: 13 additions & 0 deletions src/shared/ui-kit/box/Virtual/ui/Virtual.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@
}
}

.loader {
visibility : hidden;
opacity : 0;
height : 0;

&.loading {
opacity : 1;
visibility : visible;
height : fit-content;
width : fit-content;
}
}

&.top {
.scrollContainer,
.scrollBar {
Expand Down
Loading

0 comments on commit 9440b52

Please sign in to comment.