瀏覽代碼

81761 fix top search control

Mao 4 年之前
父節點
當前提交
44333c0dee
共有 2 個文件被更改,包括 1 次插入7 次删除
  1. 1 1
      packages/app/src/components/SearchPage/SearchControl.tsx
  2. 0 6
      packages/app/src/styles/_search.scss

+ 1 - 1
packages/app/src/components/SearchPage/SearchControl.tsx

@@ -47,7 +47,7 @@ const SearchControl: FC <Props> = (props: Props) => {
   };
 
   return (
-    <div className="search-control-section">
+    <div className="search-control-section bg-white position-sticky fixed-top">
       <div className="search-page-nav d-flex py-3 align-items-center">
         <div className="flex-grow-1 mx-4">
           <SearchPageFormTypeAny

+ 0 - 6
packages/app/src/styles/_search.scss

@@ -1,9 +1,3 @@
-.search-control-section {
-  position: sticky;
-  top: 0;
-  z-index: 999;
-}
-
 .search-page-nav {
   background-color: #f7f7f7;
 }