소스 검색

add className at Affix

visuddhinanda 2 년 전
부모
커밋
4833f54aaa
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      dashboard/src/components/dict/Dictionary.tsx

+ 5 - 1
dashboard/src/components/dict/Dictionary.tsx

@@ -77,7 +77,11 @@ const DictionaryWidget = ({ word, compact = false, onSearch }: IWidget) => {
   return (
     <div ref={setContainer}>
       <div id="pcd_dict_top"></div>
-      <Affix offsetTop={0} target={compact ? () => container : undefined}>
+      <Affix
+        offsetTop={0}
+        target={compact ? () => container : undefined}
+        className="dict_search_div"
+      >
         <div
           style={{
             backgroundColor: "rgba(100,100,100,0.3)",