Sfoglia il codice sorgente

限制最大宽度560

visuddhinanda 3 anni fa
parent
commit
5015847cf7
1 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. 8 1
      dashboard/src/components/dict/Compound.tsx

+ 8 - 1
dashboard/src/components/dict/Compound.tsx

@@ -66,7 +66,14 @@ const Widget = ({ word, add, split }: IWidget) => {
     );
     );
   }, [word]);
   }, [word]);
   return (
   return (
-    <div>
+    <div
+      style={{
+        width: "100%",
+        maxWidth: 560,
+        marginLeft: "auto",
+        marginRight: "auto",
+      }}
+    >
       <Select
       <Select
         value={currValue}
         value={currValue}
         style={{ width: "100%" }}
         style={{ width: "100%" }}