Browse Source

图片宽度自适应

visuddhinanda 2 years ago
parent
commit
6516abe0cd
1 changed files with 2 additions and 1 deletions
  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>