improve node content modal ui

This commit is contained in:
AykutSarac 2023-01-28 14:56:49 +03:00
parent 1c77a14727
commit db214a8d78
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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