Fixed description display again
This commit is contained in:
@@ -845,10 +845,11 @@ const EventAdmin: React.FC = () => {
|
|||||||
sx={{
|
sx={{
|
||||||
mb: 2,
|
mb: 2,
|
||||||
pl: 2,
|
pl: 2,
|
||||||
'& p': { marginBottom: 1 },
|
'& p': { margin: 0 },
|
||||||
'& ul, & ol': { marginLeft: 2, marginBottom: 1 },
|
'& p + p': { marginTop: '1em' },
|
||||||
'& li': { marginBottom: 0.5 },
|
'& ul, & ol': { marginLeft: 2, marginTop: '1em', marginBottom: '1em' },
|
||||||
'& h1, & h2, & h3': { marginTop: 2, marginBottom: 1 },
|
'& li': { marginBottom: 0 },
|
||||||
|
'& h1, & h2, & h3': { marginTop: '1em', marginBottom: '0.5em' },
|
||||||
'& a': { color: 'primary.main' },
|
'& a': { color: 'primary.main' },
|
||||||
}}
|
}}
|
||||||
dangerouslySetInnerHTML={{ __html: event.description || 'None' }}
|
dangerouslySetInnerHTML={{ __html: event.description || 'None' }}
|
||||||
|
|||||||
@@ -109,10 +109,11 @@ const EventDetails: React.FC = () => {
|
|||||||
</Typography>
|
</Typography>
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
'& p': { marginBottom: 1 },
|
'& p': { margin: 0 },
|
||||||
'& ul, & ol': { marginLeft: 2, marginBottom: 1 },
|
'& p + p': { marginTop: '1em' },
|
||||||
'& li': { marginBottom: 0.5 },
|
'& ul, & ol': { marginLeft: 2, marginTop: '1em', marginBottom: '1em' },
|
||||||
'& h1, & h2, & h3': { marginTop: 2, marginBottom: 1 },
|
'& li': { marginBottom: 0 },
|
||||||
|
'& h1, & h2, & h3': { marginTop: '1em', marginBottom: '0.5em' },
|
||||||
'& a': { color: 'primary.main' },
|
'& a': { color: 'primary.main' },
|
||||||
}}
|
}}
|
||||||
dangerouslySetInnerHTML={{ __html: event.description }}
|
dangerouslySetInnerHTML={{ __html: event.description }}
|
||||||
|
|||||||
@@ -163,10 +163,11 @@ const EventList: React.FC = () => {
|
|||||||
mb: 1,
|
mb: 1,
|
||||||
color: 'text.secondary',
|
color: 'text.secondary',
|
||||||
fontSize: '0.875rem',
|
fontSize: '0.875rem',
|
||||||
'& p': { marginBottom: 0.5 },
|
'& p': { margin: 0 },
|
||||||
'& ul, & ol': { marginLeft: 2, marginBottom: 0.5 },
|
'& p + p': { marginTop: '0.75em' },
|
||||||
'& li': { marginBottom: 0.25 },
|
'& ul, & ol': { marginLeft: 2, marginTop: '0.5em', marginBottom: '0.5em' },
|
||||||
'& h1, & h2, & h3': { marginTop: 1, marginBottom: 0.5, fontSize: '1rem' },
|
'& li': { marginBottom: 0 },
|
||||||
|
'& h1, & h2, & h3': { marginTop: '0.75em', marginBottom: '0.25em', fontSize: '1rem' },
|
||||||
'& a': { color: 'primary.main' },
|
'& a': { color: 'primary.main' },
|
||||||
}}
|
}}
|
||||||
dangerouslySetInnerHTML={{ __html: event.description }}
|
dangerouslySetInnerHTML={{ __html: event.description }}
|
||||||
|
|||||||
@@ -193,10 +193,11 @@ const EventView: React.FC = () => {
|
|||||||
sx={{
|
sx={{
|
||||||
mb: 2,
|
mb: 2,
|
||||||
pl: 2,
|
pl: 2,
|
||||||
'& p': { marginBottom: 1 },
|
'& p': { margin: 0 },
|
||||||
'& ul, & ol': { marginLeft: 2, marginBottom: 1 },
|
'& p + p': { marginTop: '1em' },
|
||||||
'& li': { marginBottom: 0.5 },
|
'& ul, & ol': { marginLeft: 2, marginTop: '1em', marginBottom: '1em' },
|
||||||
'& h1, & h2, & h3': { marginTop: 2, marginBottom: 1 },
|
'& li': { marginBottom: 0 },
|
||||||
|
'& h1, & h2, & h3': { marginTop: '1em', marginBottom: '0.5em' },
|
||||||
'& a': { color: 'primary.main' },
|
'& a': { color: 'primary.main' },
|
||||||
}}
|
}}
|
||||||
dangerouslySetInnerHTML={{ __html: event.description || 'None' }}
|
dangerouslySetInnerHTML={{ __html: event.description || 'None' }}
|
||||||
|
|||||||
@@ -462,10 +462,11 @@ const RSVPForm: React.FC = () => {
|
|||||||
pl: 2,
|
pl: 2,
|
||||||
color: 'text.secondary',
|
color: 'text.secondary',
|
||||||
fontSize: '0.875rem',
|
fontSize: '0.875rem',
|
||||||
'& p': { marginBottom: 1 },
|
'& p': { margin: 0 },
|
||||||
'& ul, & ol': { marginLeft: 2, marginBottom: 1 },
|
'& p + p': { marginTop: '1em' },
|
||||||
'& li': { marginBottom: 0.5 },
|
'& ul, & ol': { marginLeft: 2, marginTop: '1em', marginBottom: '1em' },
|
||||||
'& h1, & h2, & h3': { marginTop: 2, marginBottom: 1 },
|
'& li': { marginBottom: 0 },
|
||||||
|
'& h1, & h2, & h3': { marginTop: '1em', marginBottom: '0.5em' },
|
||||||
'& a': { color: 'primary.main' },
|
'& a': { color: 'primary.main' },
|
||||||
}}
|
}}
|
||||||
dangerouslySetInnerHTML={{ __html: event.description }}
|
dangerouslySetInnerHTML={{ __html: event.description }}
|
||||||
|
|||||||
Reference in New Issue
Block a user