Skip to content

Commit

Permalink
style update
Browse files Browse the repository at this point in the history
  • Loading branch information
dekanbro committed Nov 16, 2023
1 parent 5125301 commit e30f611
Showing 1 changed file with 25 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,32 +29,33 @@ import { ProposalWarning } from '../ProposalActionData/ProposalWarning';
import styled from 'styled-components';
import { ProposalActionConfig } from '../ProposalActionData';

import ReactMarkdown from "react-markdown";
import ReactMarkdown from 'react-markdown';

const Spacer = styled.div`
margin-bottom: 2rem;
`;

const ReactMarkdownWrapper = styled.div`
font-size: 1.6rem;
.description {
p, h1, h2, h3, h4 {
margin-top: 1rem;
}
h2 + p {
margin-top: 0;
}
h3 + p {
margin-top: 0;
}
h4 + p {
margin-top: 0;
}
font-size: 1.6rem;
.description {
p,
h1,
h2,
h3,
h4 {
margin-top: 1rem;
}
h2 + p {
margin-top: 0;
}
h3 + p {
margin-top: 0;
}
h4 + p {
margin-top: 0;
}
}
`;

type ProposalDetailsProps = {
Expand Down Expand Up @@ -83,7 +84,11 @@ export const ProposalDetails = ({

return (
<OverviewContainer>
<ReactMarkdownWrapper><ReactMarkdown className="description">{proposal.description}</ReactMarkdown></ReactMarkdownWrapper>
<ReactMarkdownWrapper>
<ReactMarkdown className="description">
{proposal.description}
</ReactMarkdown>
</ReactMarkdownWrapper>
{proposal.contentURI && (
<Link href={proposal.contentURI} className="proposal-link">
Link
Expand Down

0 comments on commit e30f611

Please sign in to comment.