Skip to content

Commit

Permalink
Merge pull request #187 from AgainIoT/feature/164
Browse files Browse the repository at this point in the history
Update : put the markdown preview in the middle #164
  • Loading branch information
bentshrimp authored Oct 28, 2023
2 parents d6424ef + 756b347 commit 89d5aa4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/common/MarkdownPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const MarkdownPreview = (props) => {
return (
<StMarkdownPreview>
<MDEditor
height={"100%"}
height={"60vh"}
value={contentValue}
onChange={setContentValue}
/>
Expand All @@ -22,7 +22,10 @@ const MarkdownPreview = (props) => {
};

const StMarkdownPreview = styled.div`
height: 60vh;
display: flex;
flex-direction: column;
justify-content: center;
height: 100%;
`;

export default MarkdownPreview;

0 comments on commit 89d5aa4

Please sign in to comment.