1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Tools: Apply eslint space-infix-ops rule

This commit is contained in:
Laurent Cozic 2020-03-13 23:52:40 +00:00
parent d0d2bad7f4
commit e2e55b6e08
4 changed files with 6 additions and 6 deletions

View File

@ -92,7 +92,7 @@ describe('models_Revision', function() {
- How to view a note history%0A%0AWhile all the apps
+%C2%A0How does it work?%0A%0AAll the apps save a version of the modified notes every 10 minutes.
%0A%0A# `,
expected: [-(19+27+2), 17+67+4],
expected: [-(19 + 27 + 2), 17 + 67 + 4],
},
];

View File

@ -45,8 +45,8 @@ class ElectronAppWrapper {
const stateOptions = {
defaultWidth: Math.round(0.8*screen.getPrimaryDisplay().workArea.width),
defaultHeight: Math.round(0.8*screen.getPrimaryDisplay().workArea.height),
defaultWidth: Math.round(0.8 * screen.getPrimaryDisplay().workArea.width),
defaultHeight: Math.round(0.8 * screen.getPrimaryDisplay().workArea.height),
file: `window-state-${this.env_}.json`,
};
@ -89,7 +89,7 @@ class ElectronAppWrapper {
if (!screen.getDisplayMatching(this.win_.getBounds())) {
const { width: windowWidth, height: windowHeight } = this.win_.getBounds();
const { width: primaryDisplayWidth, height: primaryDisplayHeight } = screen.getPrimaryDisplay().workArea;
this.win_.setPosition(primaryDisplayWidth/2 - windowWidth, primaryDisplayHeight/2 - windowHeight);
this.win_.setPosition(primaryDisplayWidth / 2 - windowWidth, primaryDisplayHeight / 2 - windowHeight);
}
this.win_.loadURL(url.format({

View File

@ -109,7 +109,7 @@ function styles_(props:NoteTextProps) {
paddingRight: 8,
marginRight: theme.paddingLeft,
color: theme.textStyle.color,
fontSize: theme.textStyle.fontSize * 1.25 *1.5,
fontSize: theme.textStyle.fontSize * 1.25 * 1.5,
backgroundColor: theme.backgroundColor,
border: '1px solid',
borderColor: theme.dividerColor,

View File

@ -162,7 +162,7 @@ class ResourceScreenComponent extends React.Component<Props, State> {
<Header style={headerStyle} />
<div style={{ ...style, margin: '20px', overflow: 'scroll' }}>
{this.state.isLoading && <div>{_('Please wait...')}</div>}
{!this.state.isLoading &&<div>
{!this.state.isLoading && <div>
{!this.state.resources && <div>
{_('No resources!')}
</div>