2
0
yohei0125 4 жил өмнө
parent
commit
21fa88e457

+ 7 - 7
packages/app/src/components/SearchPage/SearchResultListItem.tsx

@@ -39,17 +39,17 @@ const SearchResultListItem: FC<Props> = (props:Props) => {
   );
 
   return (
-    <li key={pageData._id} className={`page-list-li search-page-item w-100 list-group-item-action pl-2 ${isSelected ? 'active' : ''}`}>
+    <li key={pageData._id} className={`page-list-li search-result-item w-100 list-group-item-action pl-2 ${isSelected ? 'active' : ''}`}>
       <a
-        className="d-block py-4 h-100"
+        className="d-block py-3 h-100"
         href={pageId}
         onClick={() => onClickSearchResultItem != null && onClickSearchResultItem(pageData._id)}
       >
         <div className="d-flex">
           {/* checkbox */}
-          <div className="form-check my-auto mr-3">
+          <div className="form-check d-flex align-items-center justify-content-center">
             <input
-              className="form-check-input my-auto"
+              className="form-check-input"
               type="checkbox"
               id="flexCheckDefault"
               onChange={() => {
@@ -60,12 +60,12 @@ const SearchResultListItem: FC<Props> = (props:Props) => {
               checked={isChecked}
             />
           </div>
-          <div className="w-100">
+          <div className="search-item-text">
             {/* page path */}
-            <small className="mb-1">
+            <div className="item-path">
               <i className="icon-fw icon-home"></i>
               {pagePathElem}
-            </small>
+            </div>
             <div className="d-flex my-1 align-items-center">
               {/* page title */}
               <h3 className="mb-0">

+ 10 - 5
packages/app/src/styles/_search.scss

@@ -209,6 +209,9 @@
         }
       }
     }
+    .search-result-item {
+      height: 123px;
+    }
 
     .search-result-meta {
       font-weight: bold;
@@ -223,7 +226,13 @@
       vertical-align: middle;
     }
   }
-
+  .search-item-text {
+    .item-path {
+      margin-bottom: 7px;
+      font-size: 12px;
+      line-height: 18px;
+    }
+  }
   .search-result-content {
     padding-bottom: 36px;
 
@@ -285,10 +294,6 @@ body.on-search {
   }
 }
 
-.search-page-item {
-  height: 130px;
-}
-
 @include media-breakpoint-down(sm) {
   .grw-search-table {
     th {