Преглед на файлове

improve node content modal ui

AykutSarac преди 2 години
родител
ревизия
db214a8d78
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      src/components/Modal/styles.tsx
  2. 1 1
      src/containers/Modals/NodeModal/index.tsx

+ 1 - 1
src/components/Modal/styles.tsx

@@ -24,7 +24,7 @@ export const ModalWrapper = styled.div`
 
 
 export const ModalInnerWrapper = styled.div<{ size: "sm" | "md" | "lg" }>`
 export const ModalInnerWrapper = styled.div<{ size: "sm" | "md" | "lg" }>`
   min-width: 440px;
   min-width: 440px;
-  max-width: ${({ size }) => (size === "sm" ? "490px" : size === "md" ? "50%" : "90%")};
+  max-width: ${({ size }) => (size === "sm" ? "490px" : size === "md" ? "50%" : "80%")};
   width: fit-content;
   width: fit-content;
   animation: ${appearAnimation} 220ms ease-in-out;
   animation: ${appearAnimation} 220ms ease-in-out;
   line-height: 20px;
   line-height: 20px;

+ 1 - 1
src/containers/Modals/NodeModal/index.tsx

@@ -32,7 +32,7 @@ export const NodeModal = ({ selectedNode, visible, closeModal }: NodeModalProps)
   };
   };
 
 
   return (
   return (
-    <Modal visible={visible} setVisible={closeModal}>
+    <Modal visible={visible} setVisible={closeModal} size="lg">
       <Modal.Header>Node Content</Modal.Header>
       <Modal.Header>Node Content</Modal.Header>
       <Modal.Content>
       <Modal.Content>
         <SyntaxHighlighter
         <SyntaxHighlighter