Skip to content

Commit

Permalink
fix RichTextViewer.tsx formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
RamRamez committed Aug 9, 2023
1 parent 02f5bce commit 255f913
Showing 1 changed file with 2 additions and 39 deletions.
41 changes: 2 additions & 39 deletions src/components/RichTextViewer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import ReactQuill from 'react-quill';
import styled from 'styled-components';
import { QuillWrapper } from '@/components/styled-components/Quill';

const RichTextViewer = (props: { content?: string }) => {
return (
Expand All @@ -9,47 +10,9 @@ const RichTextViewer = (props: { content?: string }) => {
);
};

const Wrapper = styled.div`
img {
max-width: 100%;
}
a {
color: #007bff !important;
&:hover {
text-decoration: underline !important;
}
}
const Wrapper = styled(QuillWrapper)`
.ql-container > .ql-editor {
word-break: break-word;
padding: 0;
font-family: 'Red Hat Text', sans-serif;
font-size: 16px;
p,
li,
blockquote {
line-height: 24px;
}
h1,
h2 {
font-family: 'TeX Gyre Adventor', serif;
}
.ql-size-small {
line-height: 18px;
}
.ql-size-large {
line-height: 36px;
}
.ql-size-huge {
line-height: 56px;
}
blockquote {
border-left: 4px solid #ccc;
margin-bottom: 5px;
margin-top: 5px;
padding-left: 16px;
}
}
`;

Expand Down

0 comments on commit 255f913

Please sign in to comment.