kosei-n 2 лет назад
Родитель
Сommit
e232676194
1 измененных файлов с 9 добавлено и 4 удалено
  1. 9 4
      apps/app/src/components/TreeItem/SimpleItem.tsx

+ 9 - 4
apps/app/src/components/TreeItem/SimpleItem.tsx

@@ -188,13 +188,13 @@ export const SimpleItem: FC<SimpleItemProps> = (props) => {
       <li
       <li
         ref={itemRef}
         ref={itemRef}
         role="button"
         role="button"
-        className={`list-group-item list-group-item-action rounded border-0 py-0 pr-3 d-flex align-items-center row
+        className={`list-group-item list-group-item-action rounded border-0 py-0 pr-3 d-flex align-items-center
         ${page.isTarget ? 'grw-pagetree-current-page-item' : ''}`}
         ${page.isTarget ? 'grw-pagetree-current-page-item' : ''}`}
         id={page.isTarget ? 'grw-pagetree-current-page-item' : `grw-pagetree-list-${page._id}`}
         id={page.isTarget ? 'grw-pagetree-current-page-item' : `grw-pagetree-list-${page._id}`}
         onClick={itemClickHandler}
         onClick={itemClickHandler}
       >
       >
 
 
-        <div className="grw-triangle-container d-flex justify-content-center col-2">
+        <div className="grw-triangle-container d-flex justify-content-center">
           {hasDescendants && (
           {hasDescendants && (
             <button
             <button
               type="button"
               type="button"
@@ -210,12 +210,17 @@ export const SimpleItem: FC<SimpleItemProps> = (props) => {
 
 
         <SimpleItemContent page={page} />
         <SimpleItemContent page={page} />
 
 
-        <div className="col-2 d-flex">
+        {/* <div className="col-2 d-flex">
           {EndComponents.map((EndComponent, index) => (
           {EndComponents.map((EndComponent, index) => (
             // eslint-disable-next-line react/no-array-index-key
             // eslint-disable-next-line react/no-array-index-key
             <EndComponent key={index} {...toolProps} />
             <EndComponent key={index} {...toolProps} />
           ))}
           ))}
-        </div>
+        </div> */}
+
+        {EndComponents.map((EndComponent, index) => (
+          // eslint-disable-next-line react/no-array-index-key
+          <EndComponent key={index} {...toolProps} />
+        ))}
 
 
       </li>
       </li>