Browse Source

improve count style

kaori 4 years ago
parent
commit
f72b7a54a9

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

@@ -100,7 +100,7 @@ type ItemCountProps = {
 const ItemCount: FC<ItemCountProps> = (props:ItemCountProps) => {
 const ItemCount: FC<ItemCountProps> = (props:ItemCountProps) => {
   return (
   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}
         {props.descendantCount}
       </span>
       </span>
     </>
     </>

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

@@ -51,8 +51,7 @@ $grw-pagetree-item-padding-left: 10px;
 
 
       .grw-pagetree-count {
       .grw-pagetree-count {
         width: 23px;
         width: 23px;
-        height: 14px;
-        padding: 0.1rem 0.3rem;
+        padding: 0.1rem 0;
         font-size: 12px;
         font-size: 12px;
       }
       }
     }
     }