kosei-n 2 лет назад
Родитель
Сommit
ea6e4a2cb3

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

@@ -131,7 +131,8 @@ export const Ellipsis: FC<TreeItemToolProps> = (props) => {
   return (
     <>
       {isRenameInputShown ? (
-        <div className={`position-absolute ${hasChildren ? 'ms-5' : 'ms-4'}`}>
+        <div className={`position-absolute w-100 ${hasChildren ? 'ms-5' : 'ms-4'}`}>
+          {/* <div className="flex-fill"> */}
           <NotDraggableForClosableTextInput>
             <ClosableTextInput
               value={nodePath.basename(page.path ?? '')}

+ 7 - 2
apps/app/src/components/TreeItem/SimpleItem.tsx

@@ -210,12 +210,17 @@ export const SimpleItem: FC<SimpleItemProps> = (props) => {
 
         <SimpleItemContent page={page} />
 
-        <div className="col2 d-flex">
+        {/* <div className="col2 d-flex">
           {EndComponents.map((EndComponent, index) => (
             // eslint-disable-next-line react/no-array-index-key
             <EndComponent key={index} {...toolProps} />
           ))}
-        </div>
+        </div> */}
+
+        {EndComponents.map((EndComponent, index) => (
+          // eslint-disable-next-line react/no-array-index-key
+          <EndComponent key={index} {...toolProps} />
+        ))}
 
       </li>