Skip to content

Commit

Permalink
fix(corner-rounded): at create type and edit type sidebar the bottom …
Browse files Browse the repository at this point in the history
…left corner is not rounded
  • Loading branch information
MahtabBukhari committed Sep 21, 2024
1 parent e2b5f4f commit 5d3dbf0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/ModalsContainer/BlueprintModal/Body/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export type FormData = {
}
}

interface EditorWrapperProps {
hasSchema?: boolean
}

interface BodyProps {
Close: () => void
}
Expand Down Expand Up @@ -139,7 +143,7 @@ export const Body = ({ Close }: BodyProps) => {
<Flex align="stretch" direction="row" grow={1}>
<Flex mb={-20} ml={-20}>
{selectedSchema || isCreateNew ? (
<EditorWrapper>
<EditorWrapper hasSchema>
<InnerEditorWrapper>
<Editor
graphLoading={graphLoading}
Expand Down Expand Up @@ -231,11 +235,12 @@ const Wrapper = styled(Flex)`
}
`

const EditorWrapper = styled(Flex)`
const EditorWrapper = styled(Flex)<EditorWrapperProps>`
width: 100%;
max-width: 400px;
background: ${colors.BG1};
border-bottom-right-radius: 16px;
border-bottom-left-radius: ${({ hasSchema }) => (hasSchema ? '9px' : '0')};
flex-grow: 1;
flex-shrink: 1;
min-width: 300px;
Expand Down

0 comments on commit 5d3dbf0

Please sign in to comment.