Ver Fonte

:art: 限制气泡宽度500

visuddhinanda há 3 anos atrás
pai
commit
383d8af85d
1 ficheiros alterados com 4 adições e 1 exclusões
  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>
     </>