mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
Fix PR feedback
This commit is contained in:
parent
340f06e053
commit
8be6df24b3
@ -136,7 +136,6 @@ class ImgPreview extends React.Component {
|
||||
isPictureType = (fileName) => /\.(jpe?g|png|gif)$/i.test(fileName);
|
||||
|
||||
updateFilePosition = (newPosition) => {
|
||||
// this.setState({ position: newPosition });
|
||||
this.props.updateFilePosition(newPosition);
|
||||
}
|
||||
|
||||
|
||||
@ -23,19 +23,20 @@
|
||||
|
||||
.editor {
|
||||
min-height: 303px;
|
||||
padding: 0px 10px 0 10px;
|
||||
padding: 10px 20px 0 20px;
|
||||
font-size: 16px;
|
||||
margin-top: 10px;
|
||||
background-color: #fff;
|
||||
line-height: 18px !important;
|
||||
cursor: text;
|
||||
// TODO define rules for header's margin
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin: 0;
|
||||
line-height: 18px !important;
|
||||
}
|
||||
h1 {
|
||||
margin-top: -3px !important;
|
||||
margin-bottom: 3px;
|
||||
margin-top: 13px !important;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
> div {
|
||||
> div {
|
||||
@ -50,6 +51,9 @@
|
||||
ul, ol {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
span {
|
||||
white-space: pre-line;
|
||||
}
|
||||
}
|
||||
|
||||
.editorFocus {
|
||||
@ -165,7 +169,7 @@
|
||||
|
||||
.fullscreenPreviewEditor {
|
||||
margin-top: 9px;
|
||||
padding: 0px 8px;
|
||||
padding: 10px 20px;
|
||||
}
|
||||
|
||||
.toggleModeButton {
|
||||
|
||||
@ -5,13 +5,10 @@
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
/* eslint-disable jsx-a11y/label-has-for */
|
||||
// import PropTypes from 'prop-types';
|
||||
|
||||
import styles from './styles.scss';
|
||||
|
||||
/* eslint-disable jsx-a11y/label-has-for */
|
||||
const WysiwygDropUpload = (props) => {
|
||||
// console.log(props);
|
||||
return (
|
||||
<label
|
||||
{...props}
|
||||
|
||||
@ -171,8 +171,6 @@ export class EditPage extends React.Component {
|
||||
this.props.setFormErrors(formErrors);
|
||||
}
|
||||
|
||||
// layout = bindLayout.call(this, layout);
|
||||
|
||||
componentDidCatch(error, info) {
|
||||
console.log('err', error);
|
||||
console.log('info', info);
|
||||
|
||||
@ -36,14 +36,13 @@ function* dataGet(action) {
|
||||
try {
|
||||
const modelName = yield select(makeSelectModelName());
|
||||
const params = { source: action.source };
|
||||
const response = yield [
|
||||
const [response, layout] = yield [
|
||||
call(request, `/content-manager/explorer/${modelName}/${action.id}`, { method: 'GET', params }),
|
||||
call(request, '/content-manager/layout', { method: 'GET', params }),
|
||||
];
|
||||
|
||||
const pluginHeaderTitle = yield call(templateObject, { mainField: action.mainField }, response[0]);
|
||||
yield put(getDataSucceeded(action.id, response[0], pluginHeaderTitle.mainField));
|
||||
yield put(getLayoutSucceeded(response[1]));
|
||||
const pluginHeaderTitle = yield call(templateObject, { mainField: action.mainField }, response);
|
||||
yield put(getDataSucceeded(action.id, response, pluginHeaderTitle.mainField));
|
||||
yield put(getLayoutSucceeded(layout));
|
||||
} catch(err) {
|
||||
strapi.notification.error('content-manager.error.record.fetch');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user