Przeglądaj źródła

unshown descendantCount when rename input is shown

kaori 4 lat temu
rodzic
commit
456c2a9c57

+ 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>
           </a>
         )}
-        {(descendantCount > 0) && (
+        {descendantCount > 0 && !isRenameInputShown && (
           <div className="grw-pagetree-count-wrapper">
             <ItemCount descendantCount={descendantCount} />
           </div>