Explorar el Código

图片宽度自适应

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

+ 2 - 1
dashboard/src/components/dict/WordCardByDict.tsx

@@ -4,6 +4,7 @@ import { InfoCircleOutlined } from "@ant-design/icons";
 
 import Marked from "../general/Marked";
 import MdView from "../template/MdView";
+import "./style.css";
 
 const { Title } = Typography;
 
@@ -34,7 +35,7 @@ const WordCardByDictWidget = (prop: IWidgetWordCardByDict) => {
           </Popover>
         ) : undefined}
       </Space>
-      <div>
+      <div className="dict_content">
         <MdView html={prop.data.note} />
       </div>
     </Card>