yohei0125 4 lat temu
rodzic
commit
4e33002c0c

+ 1 - 1
packages/app/src/styles/_search.scss

@@ -185,7 +185,7 @@
 
     .search-result-list-scroll {
       // subtract the height of GrowiNavbar + (SearchControl component + other factors)
-      height: calc(100vh - ($grw-navbar-total-height + 110px));
+      height: calc(100vh - (($grw-navbar-height + $grw-navbar-border-width) + 110px));
       overflow-y: scroll;
     }
     .nav.nav-pills {

+ 1 - 1
packages/app/src/styles/_sidebar.scss

@@ -331,7 +331,7 @@
 // style to apply when displaying search page
 .growi.on-search {
   // set sidebar height shown in search page
-  $search-page-sidebar-height: calc(100vh - $grw-navbar-total-height);
+  $search-page-sidebar-height: calc(100vh - ($grw-navbar-height + $grw-navbar-border-width));
 
   .grw-sidebar {
     height: $search-page-sidebar-height;

+ 0 - 1
packages/app/src/styles/_variables.scss

@@ -15,7 +15,6 @@ $font-family-monospace-not-strictly: Monaco, Menlo, Consolas, 'Courier New', Mei
 //== Layout
 $grw-navbar-height: 52px;
 $grw-navbar-border-width: 3.3333px;
-$grw-navbar-total-height: calc($grw-navbar-height + $grw-navbar-border-width);
 
 $grw-subnav-min-height: 95px;
 $grw-subnav-min-height-md: 115px;