mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-29 00:17:48 +01:00
better document view
This commit is contained in:
@@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user