Преглед изворни кода

Merge pull request #5473 from weseek/imprv/89773-deendant-count-design

imprv: chnage fontsize of page item count
Yuki Takei пре 4 година
родитељ
комит
4494b135fa

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

@@ -100,7 +100,7 @@ type ItemCountProps = {
 const ItemCount: FC<ItemCountProps> = (props:ItemCountProps) => {
   return (
     <>
-      <span className="grw-pagetree-count badge badge-pill badge-light text-muted">
+      <span className="grw-pagetree-count px-0 badge badge-pill badge-light text-muted">
         {props.descendantCount}
       </span>
     </>

+ 3 - 1
packages/app/src/styles/_page-tree.scss

@@ -50,7 +50,9 @@ $grw-pagetree-item-padding-left: 10px;
       }
 
       .grw-pagetree-count {
-        padding: 0.1rem 0.3rem;
+        width: 26px;
+        padding: 0.1rem 0;
+        font-size: 12px;
       }
     }
   }