Browse Source

去掉底部按钮

visuddhinanda 2 năm trước cách đây
mục cha
commit
fb663ec16c
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      dashboard/src/components/general/VideoModal.tsx

+ 6 - 2
dashboard/src/components/general/VideoModal.tsx

@@ -26,14 +26,18 @@ export const VideoModalWidget = ({ src, type, trigger }: IWidget) => {
     <>
       <span onClick={showModal}>{trigger}</span>
       <Modal
+        style={{ top: 20 }}
         title="Basic Modal"
+        footer={false}
         open={isModalOpen}
         onOk={handleOk}
         onCancel={handleCancel}
-        width={1000}
+        width={800}
         destroyOnClose
+        maskClosable={false}
+        mask={false}
       >
-        <div style={{ height: 600 }}>
+        <div>
           <Video src={src} type={type} />
         </div>
       </Modal>