Sfoglia il codice sorgente

unshown descendantCount when rename input is shown

kaori 4 anni fa
parent
commit
456c2a9c57
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      packages/app/src/components/Sidebar/PageTree/Item.tsx

+ 1 - 1
packages/app/src/components/Sidebar/PageTree/Item.tsx

@@ -435,7 +435,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
             <p className={`text-truncate m-auto ${page.isEmpty && 'text-muted'}`}>{nodePath.basename(page.path ?? '') || '/'}</p>
             <p className={`text-truncate m-auto ${page.isEmpty && 'text-muted'}`}>{nodePath.basename(page.path ?? '') || '/'}</p>
           </a>
           </a>
         )}
         )}
-        {(descendantCount > 0) && (
+        {descendantCount > 0 && !isRenameInputShown && (
           <div className="grw-pagetree-count-wrapper">
           <div className="grw-pagetree-count-wrapper">
             <ItemCount descendantCount={descendantCount} />
             <ItemCount descendantCount={descendantCount} />
           </div>
           </div>