Skip to content

Commit

Permalink
styles to make proposal details more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
dekanbro committed Nov 15, 2023
1 parent 702d5cd commit 5125301
Showing 1 changed file with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,28 @@ 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;
}
}
`;

type ProposalDetailsProps = {
daoChain: string;
daoId: string;
Expand All @@ -61,7 +83,7 @@ export const ProposalDetails = ({

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

0 comments on commit 5125301

Please sign in to comment.