mirror of
https://github.com/dnote/dnote
synced 2026-03-16 23:45:52 +01:00
Wrap words in note content (#389)
* Fix word-wrap * Document change * Fix date
This commit is contained in:
parent
48d7af483c
commit
186a2e089f
3 changed files with 3 additions and 8 deletions
|
|
@ -14,7 +14,7 @@ The following log documents the history of the server project.
|
|||
|
||||
None
|
||||
|
||||
### 0.4.0 - 2020-01-08
|
||||
### 0.4.0 - 2020-01-09
|
||||
|
||||
#### Added
|
||||
|
||||
|
|
@ -23,6 +23,7 @@ None
|
|||
#### Fixed
|
||||
|
||||
- Send inactive reminders with a correct email type (#385)
|
||||
- Wrap words in note content (#389)
|
||||
|
||||
### 0.3.4 - 2019-12-24
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@
|
|||
/* eslint-disable react/no-danger */
|
||||
|
||||
import React from 'react';
|
||||
import classnames from 'classnames';
|
||||
|
||||
import { NoteData } from 'jslib/operations/types';
|
||||
import { excerpt } from 'web/libs/string';
|
||||
|
|
@ -77,7 +76,7 @@ const Content: React.SFC<Props> = ({ note, collapsed }) => {
|
|||
</div>
|
||||
) : (
|
||||
<div
|
||||
className={classnames('markdown-body', styles.content)}
|
||||
className="markdown-body"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: formatContent(note.content)
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -58,11 +58,6 @@
|
|||
padding: rem(12px) rem(16px);
|
||||
}
|
||||
|
||||
.content {
|
||||
word-wrap: break-word;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.collapsed-content {
|
||||
color: $light-gray;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue