Просмотр исходного кода

Merge pull request #1587 from visuddhinanda/agile

Agile
visuddhinanda 2 лет назад
Родитель
Сommit
b3ed36b72f

+ 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>

+ 4 - 0
dashboard/src/components/dict/style.css

@@ -0,0 +1,4 @@
+.dict_content img {
+  max-width: 100%;
+  width: 100vw;
+}