yohei0125 4 лет назад
Родитель
Сommit
79dfcce7f4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/app/src/components/SearchPage/SearchResultContent.tsx

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

@@ -54,7 +54,7 @@ type Props ={
 }
 }
 
 
 const scrollTo = (scrollElement:HTMLElement) => {
 const scrollTo = (scrollElement:HTMLElement) => {
-  // use querySelector to intentionally get element which is found first
+  // use querySelector to intentionally get the first element found
   const highlightedKeyword = scrollElement.querySelector('.highlighted-keyword') as HTMLElement;
   const highlightedKeyword = scrollElement.querySelector('.highlighted-keyword') as HTMLElement;
   if (highlightedKeyword != null) {
   if (highlightedKeyword != null) {
     smoothScrollIntoView(highlightedKeyword, SCROLL_OFFSET_TOP, scrollElement);
     smoothScrollIntoView(highlightedKeyword, SCROLL_OFFSET_TOP, scrollElement);