fix(phone/marketplace): fix word wrap

This commit is contained in:
Christopher committed 2021-03-28 23:32:02 +02:00
1 parent a88286f97a
commit f27e486ff5
2 files changed
+12 -3

No files matched your search

@@ -8,6 +8,7 @@ import { Switch, Route } from 'react-router-dom';
import { ListingFormContainer } from './form/ListingFormContainer';
import InjectDebugData from '../../../os/debug/InjectDebugData';
import { MarketplaceThemeProvider } from '../providers/MarketplaceThemeProvider';
import { MarketplaceEvents } from '../../../../../typings/marketplace';
export const MarketplaceApp = () => {
return (
@@ -29,7 +30,7 @@ export const MarketplaceApp = () => {
InjectDebugData([
{
app: 'SELLOUT',
method: 'setListings',
method: MarketplaceEvents.SEND_LISTING,
data: [
{
id: 1,
@@ -37,7 +38,7 @@ InjectDebugData([
number: '111-1134',
title: 'eeeeeeeeeeeeeeeeeeeeeeeee',
description:
'skldfsd sajsfjklsdfj sdajsklfjdsjklas jskj sdjsd jasdkl sdjsf jasdklsfjfj kljasdkf jkaf jsdkla jsk jdkla j kljasdkf jkld jasd kljk',
'skldfsdEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE',
url: 'https://beta.iodine.gg/706Y3.jpeg',
},
{
@@ -31,6 +31,14 @@ const useStyles = makeStyles((theme) => ({
background: theme.palette.background.default,
marginBottom: 20,
},
listingContent: {
padding: 10,
minWidth: 100,
maxWidth: '100%',
width: '100%',
overflowWrap: 'break-word',
wordWrap: 'break-word',
},
}));
export const MarketplaceItem = (listing: MarketplaceListing) => {
@@ -62,7 +70,7 @@ export const MarketplaceItem = (listing: MarketplaceListing) => {
</Typography>
)}
<Typography variant="body1" style={{ padding: 10 }}>
<Typography variant="body1" className={classes.listingContent}>
{listing.description}
</Typography>
<ListingActions listing={listing} />