Поправлены стили для описания и комментариев в диалоге с подробностями

This commit is contained in:
Gnedov Pavel 2023-06-22 10:54:54 +07:00
parent 808c695593
commit 64f3528873
2 changed files with 15 additions and 9 deletions

View file

@ -24,9 +24,15 @@
.modalContent pre { .modalContent pre {
font-size: 10pt; font-size: 10pt;
} /* word-wrap: normal; */
white-space: pre-wrap;
.monospace { /* Since CSS 2.1 */
font-family: monospace; white-space: -moz-pre-wrap;
font-size: 10pt; /* Mozilla, since 1999 */
white-space: -pre-wrap;
/* Opera 4-6 */
white-space: -o-pre-wrap;
/* Opera 7 */
word-wrap: break-word;
/* Internet Explorer 5.5+ */
} }

View file

@ -66,9 +66,9 @@ export const IssueDetailsDialog = observer((props: Props): JSX.Element => {
<hr/> <hr/>
<div> <div>
<h2>Описание:</h2> <h2>Описание:</h2>
<div className={Css.monospace}> <pre>
{props.store.issue.description} {props.store.issue.description}
</div> </pre>
</div> </div>
<hr/> <hr/>
<div> <div>
@ -103,9 +103,9 @@ export const Comment = (props: {data: RedmineTypes.Journal}): JSX.Element => {
<> <>
<h3>{props.data.user.name}:</h3> <h3>{props.data.user.name}:</h3>
<div> <div>
<div className={Css.monospace}> <pre>
{props.data.notes || '-'} {props.data.notes || '-'}
</div> </pre>
</div> </div>
<hr/> <hr/>
</> </>