Skip to content

Commit

Permalink
feat: improve feed content
Browse files Browse the repository at this point in the history
  • Loading branch information
myuon committed Jan 21, 2023
1 parent 0bec88e commit 9467a12
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion web/src/pages/features/note/Note.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,24 @@ export const ANote = ({
{dayjs.unix(note?.createdAt ?? 0).fromNow()}
</small>
</div>
<Interweave content={note?.content} />
<Interweave
content={note?.content}
css={css`
h1,
h2,
h3,
p {
margin: 4px 0;
line-height: 1.5;
}
ul {
display: grid;
gap: 4px;
margin-left: 16px;
}
`}
/>

<div
css={css`
Expand Down

0 comments on commit 9467a12

Please sign in to comment.