ryohek 6 лет назад
Родитель
Сommit
e003429196

+ 2 - 14
src/client/js/components/Navbar/GrowiCompactSubNavigation.jsx

@@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
 
 import { withTranslation } from 'react-i18next';
 
-import { isTrashPage } from '../../../../lib/util/path-utils';
 import { createSubscribedElement } from '../UnstatedUtils';
 import AppContainer from '../../services/AppContainer';
 import RevisionPath from '../Page/RevisionPath';
@@ -11,23 +10,16 @@ import PageContainer from '../../services/PageContainer';
 import TagLabels from '../Page/TagLabels';
 import LikeButton from '../LikeButton';
 import BookmarkButton from '../BookmarkButton';
-// import PageCreator from './PageCreator';
 import ReducedPageCreator from './ReducedPageCreator';
 import ReducedRevisionAuthor from './ReducedRevisionAuthor';
-// import RevisionAuthor from './RevisionAuthor';
 
 const GrowiCompactSubNavigation = (props) => {
   const { appContainer, pageContainer } = props;
   const {
-    path, createdAt, creator, updatedAt, revisionAuthor,
+    createdAt, creator, updatedAt, revisionAuthor,
   } = pageContainer.state;
-  // const isVisible = (window.pageYOffset > 122);
-  // // const positionY = document.getElementById('#grw-navbar');
-  // const invisiblePosition = 122;
-  // window.addEventListener('scroll', () => {
-  //   if (isVisible) {
   return (
-    <div className="d-flex align-items-center fixed-top grw-compactsubnavbar-color px-3">
+    <div className="d-flex align-items-center fixed-top grw-compact-subnavbar px-3">
 
       {/* Page Path */}
       <div className="title-container mr-auto">
@@ -53,10 +45,6 @@ const GrowiCompactSubNavigation = (props) => {
 
     </div>
   );
-  //   }
-  // }, true);
-  // return null;
-
 };
 
 /**

+ 1 - 1
src/client/styles/scss/_page_growi.scss

@@ -20,7 +20,7 @@
         }
       }
     }
-    .grw-compactsubnavbar-color {
+    .grw-compact-subnavbar {
       background-color: rgba(250, 250, 250, 0.9);
       box-shadow: 0 0 2px #999;
       h2 {