visuddhinanda hace 2 años
padre
commit
c5d83269a6
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      dashboard/src/components/dict/SearchVocabulary.tsx

+ 4 - 1
dashboard/src/components/dict/SearchVocabulary.tsx

@@ -14,12 +14,14 @@ interface ValueType {
 interface IWidget {
   value?: string;
   api?: string;
+  compact?: boolean;
   onSearch?: Function;
   onSplit?: Function;
 }
 const SearchVocabularyWidget = ({
   value,
   api = "vocabulary",
+  compact = false,
   onSplit,
   onSearch,
 }: IWidget) => {
@@ -140,7 +142,8 @@ const SearchVocabularyWidget = ({
         }}
       >
         <Input.Search
-          size="large"
+          style={{ width: "100%" }}
+          size={compact ? undefined : "large"}
           placeholder="search here"
           onSearch={(value: string) => {
             console.log("on search", value);