mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-27 15:31:27 +00:00
tidy up
This commit is contained in:
parent
45637a050b
commit
151ad9062c
4 changed files with 10 additions and 6 deletions
|
@ -57,8 +57,8 @@ export class FormField extends React.PureComponent<Props> {
|
||||||
options={{
|
options={{
|
||||||
hideIcons: ['heading', 'image', 'fullscreen', 'side-by-side'],
|
hideIcons: ['heading', 'image', 'fullscreen', 'side-by-side'],
|
||||||
previewRender(plainText) {
|
previewRender(plainText) {
|
||||||
const preview = <MarkdownPreview content={plainText}/>;
|
const preview = <MarkdownPreview content={plainText}/>;
|
||||||
return ReactDOMServer.renderToString(preview);
|
return ReactDOMServer.renderToString(preview);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -12,8 +12,8 @@ const schema = { ...defaultSchema };
|
||||||
schema.protocols.href[3] = 'lbry';
|
schema.protocols.href[3] = 'lbry';
|
||||||
|
|
||||||
type MarkdownProps = {
|
type MarkdownProps = {
|
||||||
content: string,
|
content: string,
|
||||||
promptLinks?: boolean,
|
promptLinks?: boolean,
|
||||||
};
|
};
|
||||||
|
|
||||||
const SimpleLink = ({ href, title, children }) => (<a href={href} title={title}>{children}</a>);
|
const SimpleLink = ({ href, title, children }) => (<a href={href} title={title}>{children}</a>);
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
.editor-preview,
|
|
||||||
.markdown-preview {
|
.markdown-preview {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
|
@ -79,6 +78,12 @@
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
font-family: Consolas, 'Lucida Console', 'Source Sans', monospace;
|
font-family: Consolas, 'Lucida Console', 'Source Sans', monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
font-size: 1em;
|
||||||
|
color: var(--btn-external-color);
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
table.table,
|
table.table,
|
||||||
.editor-preview table,
|
|
||||||
.markdown-preview table {
|
.markdown-preview table {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
|
Loading…
Add table
Reference in a new issue