yuken 3 лет назад
Родитель
Сommit
acd2fbe3ef

+ 3 - 1
packages/app/src/components/Page/DisplaySwitcher.tsx

@@ -23,6 +23,8 @@ import { Page } from '../Page';
 import TableOfContents from '../TableOfContents';
 import TableOfContents from '../TableOfContents';
 import UserInfo from '../User/UserInfo';
 import UserInfo from '../User/UserInfo';
 
 
+import styles from '../TableOfContents.module.scss';
+
 
 
 const WIKI_HEADER_LINK = 120;
 const WIKI_HEADER_LINK = 120;
 
 
@@ -110,7 +112,7 @@ const DisplaySwitcher = (): JSX.Element => {
                   ) }
                   ) }
 
 
                   <div className="d-none d-lg-block">
                   <div className="d-none d-lg-block">
-                    <div id="revision-toc" className="revision-toc">
+                    <div id="revision-toc" className={`${styles['revision-toc']}`}>
                       <TableOfContents />
                       <TableOfContents />
                     </div>
                     </div>
                     <ContentLinkButtons />
                     <ContentLinkButtons />

+ 35 - 0
packages/app/src/components/TableOfContents.module.scss

@@ -0,0 +1,35 @@
+
+.revision-toc :global {
+  // to get on the Attachment row
+  z-index: 1;
+  padding: 5px;
+  font-size: 0.9em;
+
+  border-bottom: 1px solid transparent;
+
+  .revision-toc-content {
+    li {
+      margin: 6px;
+    }
+    > ul {
+      padding-left: 0;
+      ul {
+        padding-left: 1em;
+      }
+    }
+
+    // first level of li
+    > ul > li {
+      padding: 5px;
+      margin-right: 4px;
+      margin-left: 17px;
+    }
+  }
+}
+
+.grw-icon-container-recently-created {
+  svg {
+    width: 14px;
+    height: 14px;
+  }
+}