mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
better performance
This commit is contained in:
parent
d9f39a8d67
commit
c9a730dd15
2 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,7 @@ const Cell: FC<IProps> = ({
|
|||
if (visibility !== is_visible) setIsVisible(visibility);
|
||||
}, [ref, is_visible, setIsVisible]);
|
||||
|
||||
const checkIfVisibleDebounced = useCallback(debounce(200 + Math.random() * 200, checkIfVisible), [
|
||||
const checkIfVisibleDebounced = useCallback(debounce(Math.random() * 200, checkIfVisible), [
|
||||
checkIfVisible,
|
||||
]);
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
position: relative;
|
||||
cursor: pointer;
|
||||
color: white;
|
||||
background: 50% 50% no-repeat/cover;
|
||||
|
||||
.is_hero {
|
||||
.title {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue