Browse Source

<div style={{ height: 600 }}>

visuddhinanda 2 years ago
parent
commit
911f1f1145
1 changed files with 3 additions and 4 deletions
  1. 3 4
      dashboard/src/components/general/VideoModal.tsx

+ 3 - 4
dashboard/src/components/general/VideoModal.tsx

@@ -31,11 +31,10 @@ export const VideoModalWidget = ({ src, type, trigger }: IWidget) => {
         onOk={handleOk}
         onCancel={handleCancel}
         width={1000}
+        destroyOnClose
       >
-        <Video src={src} type={type} />
-        <div>
-          src = {src}
-          type = {type}
+        <div style={{ height: 600 }}>
+          <Video src={src} type={type} />
         </div>
       </Modal>
     </>