Martha Cryan před 4 roky
rodič
revize
c79638644c

+ 2 - 6
packages/toc/src/generators/notebook/render.tsx

@@ -81,9 +81,7 @@ function render(
             className={
               'toc-entry-holder ' +
               fontSizeClass +
-              (tracker.activeCell === item.cellRef || collapsed
-                ? ' toc-active-cell'
-                : '')
+              (tracker.activeCell === item.cellRef ? ' toc-active-cell' : '')
             }
           >
             {button}
@@ -137,9 +135,7 @@ function render(
             className={
               'toc-entry-holder ' +
               fontSizeClass +
-              (tracker.activeCell === item.cellRef || collapsed
-                ? ' toc-active-cell'
-                : '')
+              (tracker.activeCell === item.cellRef ? ' toc-active-cell' : '')
             }
           >
             {button}

+ 4 - 4
packages/toc/style/index.css

@@ -398,17 +398,17 @@
  */
 
 .toc-level-size-2 {
-  margin-left: 31px;
+  margin-left: 16px;
 }
 
 .toc-level-size-3 {
-  margin-left: 51px;
+  margin-left: 36px;
 }
 
 .toc-level-size-4 {
-  margin-left: 71px;
+  margin-left: 56px;
 }
 
 .toc-level-size-5 {
-  margin-left: 81px;
+  margin-left: 76px;
 }