Kaynağa Gözat

fix feedback

akinori-u 2 yıl önce
ebeveyn
işleme
688692b883

+ 3 - 1
apps/app/src/components/Sidebar/PageTreeItem/Ellipsis.tsx

@@ -126,10 +126,12 @@ export const Ellipsis: FC<TreeItemToolProps> = (props) => {
     }
   };
 
+  const hasChildren = page.descendantCount ? page.descendantCount > 0 : false;
+
   return (
     <>
       {isRenameInputShown ? (
-        <div className="position-absolute ms-5">
+        <div className={`position-absolute ${hasChildren ? 'ms-5' : 'ms-4'}`}>
           <NotDraggableForClosableTextInput>
             <ClosableTextInput
               value={nodePath.basename(page.path ?? '')}