Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: page rename position

ascarbekf556e50be40f
diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/layout/NavigationPanel/PageItem.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/layout/NavigationPanel/PageItem.tsx
index 550ea35f63..7e07d06316 100644
--- a/frontend/appflowy_tauri/src/appflowy_app/components/layout/NavigationPanel/PageItem.tsx
+++ b/frontend/appflowy_tauri/src/appflowy_app/components/layout/NavigationPanel/PageItem.tsx
@@ -35,11 +35,11 @@ export const PageItem = ({ page, onPageClick }: { page: IPage; onPageClick: () =
const [popupY, setPopupY] = useState(0);
useEffect(() => {
- if (showPageOptions && el.current) {
+ if (el.current) {
const { top } = el.current.getBoundingClientRect();
setPopupY(top);
}
- }, [showPageOptions]);
+ }, [showPageOptions, showRenamePopup]);
return (
<div ref={el}>
@@ -80,6 +80,7 @@ export const PageItem = ({ page, onPageClick }: { page: IPage; onPageClick: () =
value={page.title}
onChange={(newTitle) => changePageTitle(newTitle)}
onClose={closeRenamePopup}
+ top={popupY - 124 + 40}
></RenamePopup>
)}
</div>