better document view

This commit is contained in:
2019-02-10 16:53:56 +03:00
parent af8fd37a4d
commit 9f3af631f8
2 changed files with 10 additions and 6 deletions

View File

@@ -46,7 +46,7 @@
.document { .document {
height: 100%; height: 100%;
margin-bottom: 0; margin-bottom: 1rem;
.documentHeader { .documentHeader {
display: flex; display: flex;
align-content: baseline; align-content: baseline;
@@ -72,15 +72,17 @@
} }
margin-bottom: 1rem; margin-bottom: 1rem;
} }
textarea { textarea,.documentContents {
border: 1px solid $light-gray1;
border-radius: 3px;
padding: 0.5rem 1rem;
overflow: auto; overflow: auto;
margin: 0; margin: 0;
margin-bottom: 0; margin-bottom: 0;
min-height: 100%; min-height: 90%;
margin-bottom: 1rem;
min-width: 100%; min-width: 100%;
resize: none; resize: none;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
} }
} }

View File

@@ -41,7 +41,9 @@ export class DocumentViewComponent extends React.PureComponent<
/> />
</div> </div>
</div> </div>
<Markdown source={doc.content} /> <div className="documentContents">
<Markdown source={doc.content} />
</div>
</div> </div>
); );
} else { } else {