瀏覽代碼

:art: 限制气泡宽度500

visuddhinanda 3 年之前
父節點
當前提交
383d8af85d
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      dashboard/src/components/template/Note.tsx

+ 4 - 1
dashboard/src/components/template/Note.tsx

@@ -13,7 +13,10 @@ const NoteCtl = ({ trigger, note, children }: IWidgetNoteCtl) => {
   const show = trigger ? trigger : <InfoCircleOutlined />;
   return (
     <>
-      <Popover content={children} placement="bottom">
+      <Popover
+        content={<div style={{ width: 500 }}>{children}</div>}
+        placement="bottom"
+      >
         <Link>{show}</Link>
       </Popover>
     </>