Explorar el Código

Address review

Martha Cryan hace 4 años
padre
commit
c79638644c
Se han modificado 2 ficheros con 6 adiciones y 10 borrados
  1. 2 6
      packages/toc/src/generators/notebook/render.tsx
  2. 4 4
      packages/toc/style/index.css

+ 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;
 }