Ver Fonte

add className at Affix

visuddhinanda há 2 anos atrás
pai
commit
4833f54aaa
1 ficheiros alterados com 5 adições e 1 exclusões
  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)",