fix: fix typo and remove log
This commit is contained in:
@@ -99,7 +99,6 @@ const NoteTags = observer(({ application, appState }: Props) => {
|
|||||||
}
|
}
|
||||||
const { offsetLeft: lastVisibleTagLeft, clientWidth: lastVisibleTagWidth } =
|
const { offsetLeft: lastVisibleTagLeft, clientWidth: lastVisibleTagWidth } =
|
||||||
tagsRef.current[lastVisibleTagIndex];
|
tagsRef.current[lastVisibleTagIndex];
|
||||||
console.log(tagsRef.current[0].offsetLeft);
|
|
||||||
setOverflowCountPosition(lastVisibleTagLeft + lastVisibleTagWidth);
|
setOverflowCountPosition(lastVisibleTagLeft + lastVisibleTagWidth);
|
||||||
}, [lastVisibleTagIndex, tagsContainerExpanded]);
|
}, [lastVisibleTagIndex, tagsContainerExpanded]);
|
||||||
|
|
||||||
@@ -122,7 +121,7 @@ const NoteTags = observer(({ application, appState }: Props) => {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
reloadTagsContainerLayout;
|
reloadTagsContainerLayout();
|
||||||
}, [
|
}, [
|
||||||
reloadTagsContainerLayout,
|
reloadTagsContainerLayout,
|
||||||
tags,
|
tags,
|
||||||
|
|||||||
Reference in New Issue
Block a user