Render line breaks in post content
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 30s Details

This commit is contained in:
Ladd Hoffman 2024-03-20 09:32:50 -05:00
parent afe9da73c9
commit d7df133991
2 changed files with 8 additions and 1 deletions

3
client/src/App.css Normal file
View File

@ -0,0 +1,3 @@
.post-content {
white-space: pre-line;
}

View File

@ -15,6 +15,8 @@ import Stack from 'react-bootstrap/Stack';
import Modal from 'react-bootstrap/Modal';
import Form from 'react-bootstrap/Form';
import './App.css';
import useList from './utils/List';
import { getContractByChainId, getContractNameByAddress } from './utils/contract-config';
import Web3Context from './contexts/Web3Context';
@ -324,7 +326,9 @@ function App() {
<Modal.Title>View Post</Modal.Title>
</Modal.Header>
<Modal.Body>
{viewPostContent}
<p className="post-content">
{viewPostContent}
</p>
</Modal.Body>
<Modal.Footer>
<Button variant="secondary" onClick={handleCloseViewPost}>