فهرست منبع

adjust GrowiSubNavigation

itizawa 6 سال پیش
والد
کامیت
3c8e9c8285
2فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 2 2
      src/client/js/components/Navbar/GrowiSubNavigation.jsx
  2. 3 0
      src/client/styles/scss/_page_growi.scss

+ 2 - 2
src/client/js/components/Navbar/GrowiSubNavigation.jsx

@@ -20,7 +20,7 @@ const GrowiSubNavigation = (props) => {
   const {
   const {
     pageId, path, createdAt, creator, updatedAt, revisionAuthor, isCompactMode,
     pageId, path, createdAt, creator, updatedAt, revisionAuthor, isCompactMode,
   } = pageContainer.state;
   } = pageContainer.state;
-  const compactClassName = isCompactMode ? 'fixed-top grw-compact-subnavbar px-3' : null;
+  const compactClassName = isCompactMode ? 'grw-compact-subnavbar w-100' : null;
 
 
   // Display only the RevisionPath if the page is trash or forbidden
   // Display only the RevisionPath if the page is trash or forbidden
   if (isTrashPage(path) || isPageForbidden) {
   if (isTrashPage(path) || isPageForbidden) {
@@ -36,7 +36,7 @@ const GrowiSubNavigation = (props) => {
   }
   }
 
 
   return (
   return (
-    <div className={`d-flex align-items-center ${compactClassName}`}>
+    <div className={`row px-3 align-items-center ${compactClassName}`}>
 
 
       {/* Page Path */}
       {/* Page Path */}
       <div className="title-container mr-auto">
       <div className="title-container mr-auto">

+ 3 - 0
src/client/styles/scss/_page_growi.scss

@@ -21,6 +21,9 @@
       }
       }
     }
     }
     .grw-compact-subnavbar {
     .grw-compact-subnavbar {
+      position: fixed;
+      top: 0px;
+      z-index: $zindex-fixed;
       h2 {
       h2 {
         font-size: 20px;
         font-size: 20px;
         line-height: 1.1em;
         line-height: 1.1em;