Skip to content

Commit 89d5aa4

Browse files
authored
Merge pull request #187 from AgainIoT/feature/164
Update : put the markdown preview in the middle #164
2 parents d6424ef + 756b347 commit 89d5aa4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/common/MarkdownPreview.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const MarkdownPreview = (props) => {
1313
return (
1414
<StMarkdownPreview>
1515
<MDEditor
16-
height={"100%"}
16+
height={"60vh"}
1717
value={contentValue}
1818
onChange={setContentValue}
1919
/>
@@ -22,7 +22,10 @@ const MarkdownPreview = (props) => {
2222
};
2323

2424
const StMarkdownPreview = styled.div`
25-
height: 60vh;
25+
display: flex;
26+
flex-direction: column;
27+
justify-content: center;
28+
height: 100%;
2629
`;
2730

2831
export default MarkdownPreview;

0 commit comments

Comments
 (0)