Need to preserve white space in media descriptions

This commit is contained in:
Lim Chee Aun 2023-01-25 00:40:05 +08:00
parent 7f9742b50a
commit 5fb123f228

View file

@ -1446,7 +1446,13 @@ function Carousel({ mediaAttachments, index = 0, onClose = () => {} }) {
<h2>Media description</h2> <h2>Media description</h2>
</header> </header>
<main> <main>
<p>{showMediaAlt}</p> <p
style={{
whiteSpace: 'pre-wrap',
}}
>
{showMediaAlt}
</p>
</main> </main>
</div> </div>
</Modal> </Modal>