Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
Use predefined monospace font for code, 1.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed May 30, 2019
1 parent 336b54c commit 8795cc2
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 7 deletions.
5 changes: 3 additions & 2 deletions app/components/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ export default class Home extends React.Component {

changeMode(mode) {
this.setState({mode: mode});

this.componentManager.setComponentDataValueForKey("mode", mode.mode);
if(this.note) {
this.componentManager.setComponentDataValueForKey("mode", mode.mode);
}
}

configureMarkdown() {
Expand Down
4 changes: 4 additions & 0 deletions app/stylesheets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ body, html {
border-radius: 3px;
}

code {
font-family: var(--sn-stylekit-monospace-font);
}

table {
display: block;
margin-bottom: 12px;
Expand Down
2 changes: 2 additions & 0 deletions dist/dist.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/dist.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion dist/dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -2095,7 +2095,10 @@ function (_React$Component) {
this.setState({
mode: mode
});
this.componentManager.setComponentDataValueForKey("mode", mode.mode);

if (this.note) {
this.componentManager.setComponentDataValueForKey("mode", mode.mode);
}
}
}, {
key: "configureMarkdown",
Expand Down
2 changes: 1 addition & 1 deletion dist/dist.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sn-simple-markdown-editor",
"version": "1.3.3",
"version": "1.3.4",
"main": "dist/dist.js",
"scripts": {
"lint": "eslint --cache --ignore-path .gitignore --ext .jsx,.js --format=node_modules/eslint-formatter-pretty .",
Expand Down

0 comments on commit 8795cc2

Please sign in to comment.