File tree Expand file tree Collapse file tree
src/app/pages/NFTInstanceDashboardPage Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Keep newlines in NFT descriptions
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import { TokenTypeTag } from '../../components/Tokens/TokenList'
1313import { SearchScope } from '../../../types/searchScope'
1414import { TokenLink } from '../../components/Tokens/TokenLink'
1515import { EvmNft } from 'oasis-nexus/api'
16+ import Box from '@mui/material/Box'
1617
1718type InstanceDetailsCardProps = {
1819 nft : EvmNft | undefined
@@ -56,7 +57,9 @@ export const InstanceDetailsCard: FC<InstanceDetailsCardProps> = ({
5657 { nft . description && (
5758 < >
5859 < dt > { t ( 'common.description' ) } </ dt >
59- < dd > { nft . description } </ dd >
60+ < dd >
61+ < Box sx = { { whiteSpace : 'pre-line' } } > { nft . description } </ Box >
62+ </ dd >
6063 </ >
6164 ) }
6265 < dt > { t ( 'nft.instanceTokenId' ) } </ dt >
You can’t perform that action at this time.
0 commit comments