mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
added editor panel
This commit is contained in:
parent
ee17b72a7f
commit
bfc779745a
6 changed files with 45 additions and 12 deletions
|
@ -10,6 +10,7 @@ import * as styles from './styles.scss';
|
|||
import { connect } from 'react-redux';
|
||||
import { selectNode } from '~/redux/node/selectors';
|
||||
import { ImageEditor } from '~/components/editors/ImageEditor';
|
||||
import { EditorPanel } from '~/components/editors/EditorPanel';
|
||||
|
||||
const mapStateToProps = selectNode;
|
||||
const mapDispatchToProps = {};
|
||||
|
@ -23,7 +24,12 @@ const EditorDialogUnconnected: FC<IProps> = ({ onRequestClose, editor }) => {
|
|||
}, [setData, data]);
|
||||
|
||||
const buttons = (
|
||||
<Padder>
|
||||
<Padder style={{ position: 'relative' }}>
|
||||
<EditorPanel
|
||||
data={data}
|
||||
setData={setData}
|
||||
/>
|
||||
|
||||
<Group horizontal>
|
||||
<InputText title="Название" value={data.title} handler={setTitle} />
|
||||
|
||||
|
|
|
@ -1,16 +1,8 @@
|
|||
.editor {
|
||||
flex: 1;
|
||||
padding: $gap;
|
||||
// padding-bottom: 0;
|
||||
display: grid;
|
||||
// padding-bottom: 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
grid-column-gap: $gap;
|
||||
grid-row-gap: $gap;
|
||||
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
|
||||
@media (max-width: 600px) {
|
||||
grid-template-columns: repeat(auto-fill, minmax(30vw, 1fr));
|
||||
}
|
||||
position: relative;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue